summaryrefslogtreecommitdiff
path: root/portato/gui/windows/main.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-07-09 23:24:18 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-07-09 23:24:18 +0200
commitb166a860bc1d645208b6ecab5270b64fca34188b (patch)
treebed4d3025498d668f88fdb5ab07949f9b3890e27 /portato/gui/windows/main.py
parent107c4cc0c8f0039224505d29707ccc7eda4f5afb (diff)
parentc592c0a400099e442508ec09284e188d03fb5444 (diff)
downloadportato-b166a860bc1d645208b6ecab5270b64fca34188b.tar.gz
portato-b166a860bc1d645208b6ecab5270b64fca34188b.tar.bz2
portato-b166a860bc1d645208b6ecab5270b64fca34188b.zip
Merged in the portage-2.2 branch
Diffstat (limited to '')
-rw-r--r--portato/gui/windows/main.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/portato/gui/windows/main.py b/portato/gui/windows/main.py
index 265d4dd..50dd366 100644
--- a/portato/gui/windows/main.py
+++ b/portato/gui/windows/main.py
@@ -1313,7 +1313,7 @@ class MainWindow (Window):
if pkg.is_installed():
installed = set(pkg.get_iuse_flags()).intersection(pkg.get_installed_use_flags())
else:
- inst = system.find_packages(pkg.get_slot_cp(), "installed")
+ inst = system.find_packages(pkg.get_slot_cp(), system.SET_INSTALLED)
if inst:
installed = set(inst[0].get_iuse_flags()).intersection(inst[0].get_installed_use_flags())
else:
@@ -1420,7 +1420,13 @@ class MainWindow (Window):
watch = gtk.gdk.Cursor(gtk.gdk.WATCH)
self.window.window.set_cursor(watch)
try:
- updating = system.update_world(newuse = self.cfg.get_boolean("newuse"), deep = self.cfg.get_boolean("deep"))
+ sets = ("world", "system") # default
+ if system.has_set_support():
+ confsets = [x.strip() for x in self.cfg.get("updatesets").split(",")]
+ syssets = system.get_sets()
+ sets = [s for s in confsets if s in syssets]
+
+ updating = system.update_world(sets = sets, newuse = self.cfg.get_boolean("newuse"), deep = self.cfg.get_boolean("deep"))
debug("updating list: %s --> length: %s", [(x.get_cpv(), y.get_cpv()) for x,y in updating], len(updating))
gobject.idle_add(cb_idle_append, updating)
finally: