From 3dcd1d59b06d23709643f440bbc102cef4a675e3 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 28 Feb 2008 23:36:16 +0100 Subject: [PATCH] make the test backend use the common interface and path --- backends/test/helpers/PackageKitDbusTest.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/backends/test/helpers/PackageKitDbusTest.py b/backends/test/helpers/PackageKitDbusTest.py index ec87dbc2d..19de9fa85 100755 --- a/backends/test/helpers/PackageKitDbusTest.py +++ b/backends/test/helpers/PackageKitDbusTest.py @@ -18,11 +18,12 @@ import dbus.service import gobject from packagekit.enums import * -PACKAGEKIT_DBUS_INTERFACE = 'org.freedesktop.PackageKitTestBackend' -PACKAGEKIT_DBUS_SERVICE = 'org.freedesktop.PackageKitTestBackend' -PACKAGEKIT_DBUS_PATH = '/org/freedesktop/PackageKitTestBackend' +# This is common between backends +from packagekit.daemonBackend import PACKAGEKIT_DBUS_INTERFACE, PACKAGEKIT_DBUS_PATH -#sudo dbus-send --system --dest=org.freedesktop.PackageKitTestBackend --type=method_call --print-reply /org/freedesktop/PackageKitTestBackend org.freedesktop.PackageKitTestBackend.SearchName string:filter string:search +PACKAGEKIT_DBUS_SERVICE = 'org.freedesktop.PackageKitTestBackend' + +#sudo dbus-send --system --dest=org.freedesktop.PackageKitTestBackend --type=method_call --print-reply /org/freedesktop/PackageKitBackend org.freedesktop.PackageKitBackend.SearchName string:filter string:search class PackageKitTestBackendService(dbus.service.Object): @dbus.service.method(PACKAGEKIT_DBUS_INTERFACE,