From 14efe88ba5ef199bbe0e57873898fcd75286a3ec Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Tue, 11 Mar 2008 23:25:17 +0100 Subject: use catapult vars --- portato/backend/catapult/system.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'portato/backend/catapult/system.py') diff --git a/portato/backend/catapult/system.py b/portato/backend/catapult/system.py index eecf122..c04f997 100644 --- a/portato/backend/catapult/system.py +++ b/portato/backend/catapult/system.py @@ -16,6 +16,7 @@ import re, os from gettext import lgettext as _ from threading import Event import dbus +import catapult from .package import CatapultPackage from ..system_interface import SystemInterface @@ -28,8 +29,8 @@ class CatapultSystem (SystemInterface): self.bus = dbus.SessionBus() # get the system - so = self.bus.get_object("org.gentoo.catapult.portage", "/org/gentoo/catapult/System", follow_name_owner_changes = True) - self.proxy = dbus.Interface(so, "org.gentoo.catapult.System") + 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 geneticize_list (self, list_of_packages, only_cpv = False): """Convertes a list of cpv's into L{backend.Package}s. -- cgit v1.2.3-54-g00ecf