Mercurial > traipse_dev
comparison upmana/updatemana.py @ 51:14d4270d5e5d traipse_dev
Fixed Auto Update not finding current branch, no pull associated yet!
Removed print statement.
author | sirebral |
---|---|
date | Thu, 06 Aug 2009 09:50:16 -0500 |
parents | b41ea7d28a9e |
children | c9694d854a61 |
comparison
equal
deleted
inserted
replaced
50:a539bb8371b0 | 51:14d4270d5e5d |
---|---|
464 self.updater = updaterFrame(self, "OpenRPG Update Manager Beta 0.6.7", self.open_rpg, self.manifest, self.main) | 464 self.updater = updaterFrame(self, "OpenRPG Update Manager Beta 0.6.7", self.open_rpg, self.manifest, self.main) |
465 if self.manifest.GetString("updatemana", "auto_update", "") == 'on' and self.main == False: | 465 if self.manifest.GetString("updatemana", "auto_update", "") == 'on' and self.main == False: |
466 self.AutoUpdate(); self.OnExit() | 466 self.AutoUpdate(); self.OnExit() |
467 else: pass | 467 else: pass |
468 if self.manifest.GetString('updatemana', 'no_update', '') == 'on' and self.main == False: | 468 if self.manifest.GetString('updatemana', 'no_update', '') == 'on' and self.main == False: |
469 print 'no udpate'; self.OnExit() | 469 self.OnExit() |
470 else: pass | 470 else: pass |
471 try: | 471 try: |
472 self.updater.Show() | 472 self.updater.Show() |
473 #self.SetTopWindow(self.updater) | 473 #self.SetTopWindow(self.updater) |
474 self.updater.Fit() | 474 self.updater.Fit() |
477 | 477 |
478 def AutoUpdate(self): | 478 def AutoUpdate(self): |
479 self.ui = ui.ui() | 479 self.ui = ui.ui() |
480 self.repo = hg.repository(self.ui, ".") | 480 self.repo = hg.repository(self.ui, ".") |
481 self.c = self.repo.changectx('tip') | 481 self.c = self.repo.changectx('tip') |
482 self.current = self.repo.dirstate.branch() | |
482 filename = 'ignorelist.txt' | 483 filename = 'ignorelist.txt' |
483 self.filename = orpg.dirpath.dir_struct["home"] + 'upmana' + os.sep + filename | 484 self.filename = orpg.dirpath.dir_struct["home"] + 'upmana' + os.sep + filename |
484 orpg.tools.validate.Validate(orpg.dirpath.dir_struct["home"] + 'upmana' + os.sep).config_file(filename, "default_ignorelist.txt") | 485 orpg.tools.validate.Validate(orpg.dirpath.dir_struct["home"] + 'upmana' + os.sep).config_file(filename, "default_ignorelist.txt") |
485 self.mana = self.LoadDoc() | 486 self.mana = self.LoadDoc() |
486 for ignore in self.ignorelist: | 487 for ignore in self.ignorelist: |