From 2244955983847be2158b6fae73b511755e65a887 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Tue, 11 Aug 2009 13:12:48 +0200 Subject: Do not show masking label, if the package is not in system anymore --- portato/gui/windows/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'portato/gui') 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("(%s)" % _("Testing")) -- cgit v1.2.3-54-g00ecf From 35a5f9203d3ab32db7bb8e571afd97f491912621 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Tue, 11 Aug 2009 13:28:05 +0200 Subject: Sync portage and the DB after emerge sync --- portato/gui/queue.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'portato/gui') 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: -- cgit v1.2.3-54-g00ecf