summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-08-11 13:28:05 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-08-11 13:28:05 +0200
commit35a5f9203d3ab32db7bb8e571afd97f491912621 (patch)
treee926f36a322b030bdf8480771a2c80d0d98ab3a8
parent2244955983847be2158b6fae73b511755e65a887 (diff)
downloadportato-35a5f9203d3ab32db7bb8e571afd97f491912621.tar.gz
portato-35a5f9203d3ab32db7bb8e571afd97f491912621.tar.bz2
portato-35a5f9203d3ab32db7bb8e571afd97f491912621.zip
Sync portage and the DB after emerge sync
-rw-r--r--portato/gui/queue.py9
1 files changed, 9 insertions, 0 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: