summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--portato/backend/catapult/package.py19
1 files changed, 14 insertions, 5 deletions
diff --git a/portato/backend/catapult/package.py b/portato/backend/catapult/package.py
index 5da4361..5ab8743 100644
--- a/portato/backend/catapult/package.py
+++ b/portato/backend/catapult/package.py
@@ -29,6 +29,8 @@ class CatapultPackage(Package):
bus = dbus.SessionBus()
dbus_object = bus.get_object(catapult.get_dbus_address(catapult.DEFAULT), catapult.CATAPULT_PACKAGE_BUS, follow_name_owner_changes = True)
proxy = dbus.Interface(dbus_object, catapult.CATAPULT_PACKAGE_IFACE)
+
+ _expand = {}
def _new_flags (self):
flags = self.get_new_use_flags()
@@ -44,13 +46,20 @@ class CatapultPackage(Package):
return nflags
def use_expanded (self, flag, suggest = None):
- if not suggest:
- suggest = ""
- s = str(self.proxy.use_expanded(self.get_cpv(), flag, suggest))
- if s:
+
+ exp = self._expand.get(flag, False)
+
+ if exp is False:
+ if not suggest:
+ suggest = ""
+ s = str(self.proxy.use_expanded(self.get_cpv(), flag, suggest))
+ if not s:
+ s = None
+
+ self._expand[flag] = s
return s
else:
- return None
+ return exp
def get_package_path(self):
return str(self.proxy.get_package_path(self.get_cpv()))
d809688&follow=1'>Added plugin, which simply throws an exceptionRené 'Necoro' Neumann2-0/+15 2008-06-23Fixed name of gpytage pluginRené 'Necoro' Neumann1-1/+1 2008-06-23Moved GtkThread to gui.utilsRené 'Necoro' Neumann5-29/+25 2008-06-22Implemented the mail sendingRené 'Necoro' Neumann2-3/+63 2008-06-22First mail window draftRené 'Necoro' Neumann3-0/+220 2008-06-10Added gpytage pluginRené 'Necoro' Neumann2-0/+29 2008-06-10Modified plugin.xsd so it allows also menu-only pluginsRené 'Necoro' Neumann2-7/+8 2008-06-10Fixed the default handlingRené 'Necoro' Neumann1-1/+1 2008-06-10Allowed default for session; load 'app-portage/portato' as default for select...René 'Necoro' Neumann2-10/+18 2008-06-09Fixed 'kill' in the systray popupRené 'Necoro' Neumann1-2/+2 2008-06-09Fixed error messageRené 'Necoro' Neumann2-4/+1 2008-06-08Make blocks way more intelligentRené 'Necoro' Neumann3-45/+107