diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-08-12 12:52:14 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-08-12 12:52:14 +0200 |
commit | 1ff4d3590fe8e788736e9ebf6700bdd6aa3773f3 (patch) | |
tree | 86301639c6f9a1d4d37c438151b9f855453f4cf2 /portato/gui | |
parent | 4017dbceb245507e6479d3100fcda30f1bb7d99c (diff) | |
parent | 73341da5ac1b1acf2632ea62f95aab7e3e86b965 (diff) | |
download | portato-1ff4d3590fe8e788736e9ebf6700bdd6aa3773f3.tar.gz portato-1ff4d3590fe8e788736e9ebf6700bdd6aa3773f3.tar.bz2 portato-1ff4d3590fe8e788736e9ebf6700bdd6aa3773f3.zip |
Another merge from 0.13
Diffstat (limited to 'portato/gui')
-rw-r--r-- | portato/gui/queue.py | 9 | ||||
-rw-r--r-- | portato/gui/windows/main.py | 4 |
2 files changed, 11 insertions, 2 deletions
diff --git a/portato/gui/queue.py b/portato/gui/queue.py index e19f8cb..7c667f9 100644 --- a/portato/gui/queue.py +++ b/portato/gui/queue.py @@ -532,6 +532,15 @@ class EmergeQueue: except ValueError: # no && in command self.doEmerge([],[],{}, command, caller = self.sync) + # syncing portage and DB after emerge sync + def finish (): + debug("Finishing sync...") + system.reload_settings() + self.db.reload() + debug("Sync finished") + + self.threadQueue.put(finish, caller = self.sync) + def kill_emerge (self): """Kills the emerge process.""" if self.process is not None: diff --git a/portato/gui/windows/main.py b/portato/gui/windows/main.py index 574fa14..1b67747 100644 --- a/portato/gui/windows/main.py +++ b/portato/gui/windows/main.py @@ -235,6 +235,7 @@ class PackageTable: self.installedCheck.hide() self.maskedCheck.hide() + self.maskedLabel.set_label("") # this is needed for some unknown reason self.maskedLabel.hide() self.testingCheck.hide() self.emergeBtn.set_sensitive(False) @@ -264,8 +265,7 @@ class PackageTable: else: self.maskedCheck.set_active(pkg.is_masked(use_changed = False)) - if reason: - self.maskedLabel.set_label(reason) + self.maskedLabel.set_label(reason) if pkg.is_testing(use_keywords = False) and not pkg.is_testing(use_keywords = True): self.testingCheck.set_label("<i>(%s)</i>" % _("Testing")) |