summaryrefslogtreecommitdiff
path: root/portato/gui/queue.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-04-14 15:02:26 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-04-14 15:02:26 +0200
commit97ed62a4372c1f86f6dfbe42ab13cea97d0920a7 (patch)
tree6ff4155bdb77ebf44aa1b40c6f0e1447d42138d1 /portato/gui/queue.py
parent91dd077b4d06a46ae09e47b2bec2670f78eda6c0 (diff)
downloadportato-97ed62a4372c1f86f6dfbe42ab13cea97d0920a7.tar.gz
portato-97ed62a4372c1f86f6dfbe42ab13cea97d0920a7.tar.bz2
portato-97ed62a4372c1f86f6dfbe42ab13cea97d0920a7.zip
Also update dependency categories
Diffstat (limited to 'portato/gui/queue.py')
-rw-r--r--portato/gui/queue.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/portato/gui/queue.py b/portato/gui/queue.py
index f203920..78a4b41 100644
--- a/portato/gui/queue.py
+++ b/portato/gui/queue.py
@@ -290,7 +290,7 @@ class EmergeQueue:
# open tty
if self.console:
self.console.reset()
-
+
def pre ():
os.setsid() # new session
if self.console:
@@ -300,6 +300,9 @@ class EmergeQueue:
os.dup2(self.pty[1], 1)
os.dup2(self.pty[1], 2)
+ # get all categories that are being touched during the emerge process
+ cats = set(map(lambda x: x.split("/")[0], it.iterkeys()))
+
# start emerge
self.process = Popen(command+options+packages, shell = False, env = system.get_environment(), preexec_fn = pre)
@@ -342,7 +345,7 @@ class EmergeQueue:
@plugin.hook("after_emerge", packages = packages, retcode = ret)
def update_packages():
if self.db:
- for cat in unique_array([system.split_cpv(p)[0] for p in packages if p not in ["world", "system"]]):
+ for cat in cats:
self.db.reload(cat)
debug("Category %s refreshed", cat)