Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » Releasing U++ » deb packages don't update user sources properly
Re: deb packages don't update user sources properly [message #26264 is a reply to message #26258] Mon, 19 April 2010 20:17 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1791
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi,
mr_ped wrote on Mon, 19 April 2010 12:06

I have also right now get a flash of an idea, how about putting into installer another wizard to not copy sources from /usr/share, but instead check them out from svn mirror right into userland. In such case after update your "fix" could run another svn update up to revision of installed package (not to head).

That is a great idea! Why it didn't flash myself? Smile Let me try to put it all together and describe the processing logic...

When theide starts, it should check if
  1. there is /usr/share/upp
  2. svn is installed
  3. user copy of sources exists
Then we can procede as follows:
if(!c){
  if(a || b){
    Give user the choices:
    if(a){                    * copy sources from /usr/share [recommended]}
    if(b){                    * checkout sources from svn [advanced users]}
                              * do not copy sources [very advanced users, not recommended :-) ]
  }else{
    ONCELOCK(Warn user that if he wants to use theide with ultimate++,
             he must either install upp package or subversion)
  }
}else{
  if((users sources are from /usr/share) && (user source are outdated)){
    Ask user if he wishes to: * overwrite everything
                              * overwrite only files that haven't changed since last update
                              * keep all the out of date sources
  }
  if((users sources are from svn) && (svnversion reports newer version)){
       Alert user that update is available.
  }
}

Does it make any sense? It is bit more complex than I expected at first... By "oncelock" I mean do it only on first run, otherwise it would be annoying.

Honza
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Automatic nightly builds reastored - and reason(s) why it was failing (unodgs, please read :)
Next Topic: [PROPOSAL] Changes to packaging scheme
Goto Forum:
  


Current Time: Sun Aug 24 13:23:12 CEST 2025

Total time taken to generate the page: 0.05311 seconds