summaryrefslogtreecommitdiff
path: root/portato/backend/catapult
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-03-28 16:45:43 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-03-28 16:45:43 +0100
commit9ee855dcfb16c5dfeef59143c50d97cd89aa716b (patch)
treeaea137c2934bef679d610e65503354dc15108a18 /portato/backend/catapult
parent418690070652c20a10681f9a61a958cd2a0920f6 (diff)
parent44965f41dfaddc9d7d7eab86498fc25b65793db2 (diff)
downloadportato-9ee855dcfb16c5dfeef59143c50d97cd89aa716b.tar.gz
portato-9ee855dcfb16c5dfeef59143c50d97cd89aa716b.tar.bz2
portato-9ee855dcfb16c5dfeef59143c50d97cd89aa716b.zip
Added version infos to exceptions
Diffstat (limited to 'portato/backend/catapult')
-rw-r--r--portato/backend/catapult/system.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/portato/backend/catapult/system.py b/portato/backend/catapult/system.py
index c04f997..8c84b56 100644
--- a/portato/backend/catapult/system.py
+++ b/portato/backend/catapult/system.py
@@ -32,6 +32,10 @@ class CatapultSystem (SystemInterface):
so = self.bus.get_object(catapult.get_dbus_address(catapult.DEFAULT), catapult.CATAPULT_SYSTEM_BUS, follow_name_owner_changes = True)
self.proxy = dbus.Interface(so, catapult.CATAPULT_SYSTEM_IFACE)
+ def get_version (self):
+ admint = dbus.Interface(self.bus.get_object(catapult.get_dbus_address(catapult.DEFAULT), catapult.CATAPULT_BUS), catapult.CATAPULT_ADMIN_IFACE)
+ return "Catapult: %s v. %s" % (self.proxy.bus_name.split(".")[-1], str(admint.version()))
+
def geneticize_list (self, list_of_packages, only_cpv = False):
"""Convertes a list of cpv's into L{backend.Package}s.