summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--portato/backend/catapult/package.py5
-rw-r--r--portato/backend/catapult/system.py5
2 files changed, 6 insertions, 4 deletions
diff --git a/portato/backend/catapult/package.py b/portato/backend/catapult/package.py
index e42ac6a..5da4361 100644
--- a/portato/backend/catapult/package.py
+++ b/portato/backend/catapult/package.py
@@ -19,6 +19,7 @@ from ..exceptions import BlockedException, PackageNotFoundException
from ...helper import debug, unique_array
import dbus
+import catapult
import os.path
from gettext import lgettext as _
@@ -26,8 +27,8 @@ from gettext import lgettext as _
class CatapultPackage(Package):
bus = dbus.SessionBus()
- dbus_object = bus.get_object("org.gentoo.catapult.portage", "/org/gentoo/catapult/Package", follow_name_owner_changes = True)
- proxy = dbus.Interface(dbus_object, "org.gentoo.catapult.Package")
+ 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)
def _new_flags (self):
flags = self.get_new_use_flags()
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.
fo messageRené 'Necoro' Neumann2-7/+13 2010-04-15Renamed es_ES to esRené 'Necoro' Neumann1-0/+0 2010-04-15Fixed dependancy of the new_version plugin from "dev-util/git" to "dev-vcs/gi...Clement Bourgeois1-1/+1 2010-04-14Make some useless info messages being debug statementsRené 'Necoro' Neumann2-34/+17 2010-04-14Improve the C modulesRené 'Necoro' Neumann3-37/+52 2010-04-14Small modifications made to the French translation (typos, grammar).Clement Bourgeois1-69/+69 2010-04-14Fixed the unicode support and stuff ... and also made eix faster :)René 'Necoro' Neumann1-20/+22 2010-04-14Disable debug messages by defaultRené 'Necoro' Neumann1-1/+1 2010-04-13Better eix error inheritance and handlingRené 'Necoro' Neumann1-2/+9 2010-04-13Fix the handling of FilterSets. Fixes bug #558887.René 'Necoro' Neumann2-56/+64 2010-04-12Updated newsRené 'Necoro' Neumann1-0/+1 2010-04-13Added my name to translators list.Clement Bourgeois1-0/+1