diff options
author | Necoro <> | 2007-10-19 17:14:47 +0000 |
---|---|---|
committer | Necoro <> | 2007-10-19 17:14:47 +0000 |
commit | b40b79fcdcca9418964a44c84e73b61b22caf08f (patch) | |
tree | a719ee8c17dc84b0c93a0034a6017be62b462de0 /portato/backend/catapult | |
parent | 3992e6b8c511fe7796f9a3b10b88f4db932945ff (diff) | |
download | portato-b40b79fcdcca9418964a44c84e73b61b22caf08f.tar.gz portato-b40b79fcdcca9418964a44c84e73b61b22caf08f.tar.bz2 portato-b40b79fcdcca9418964a44c84e73b61b22caf08f.zip |
small changes to prepare for 0.8.6
Diffstat (limited to '')
-rw-r--r-- | portato/backend/catapult/package.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/portato/backend/catapult/package.py b/portato/backend/catapult/package.py index 32ea379..b5f3539 100644 --- a/portato/backend/catapult/package.py +++ b/portato/backend/catapult/package.py @@ -25,14 +25,10 @@ from gettext import lgettext as _ class CatapultPackage(Package): - def __init__ (self, cpv): - Package.__init__(self, cpv) - - self.bus = dbus.SessionBus() - # get the system - po = self.bus.get_object("org.gentoo.catapult.portage", "/org/gentoo/catapult/Package") - self.proxy = dbus.Interface(po, "org.gentoo.catapult.Package") - + bus = dbus.SessionBus() + dbus_object = bus.get_object("org.gentoo.catapult.portage", "/org/gentoo/catapult/Package") + proxy = dbus.Interface(dbus_object, "org.gentoo.catapult.Package") + def use_expanded (self, flag, suggest = None): if not suggest: suggest = "" |