summaryrefslogtreecommitdiff
path: root/portato
diff options
context:
space:
mode:
Diffstat (limited to 'portato')
-rw-r--r--portato/gui/queue.py9
-rw-r--r--portato/gui/windows/main.py4
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"))