[packagekit] yum2 backend
Tim Lauridsen
tim.lauridsen at googlemail.com
Fri Feb 15 05:41:17 PST 2008
Tim Lauridsen wrote:
> I spend some time make the yum2 dbus backend work.
>
> Had to comment out all dbus service methods in the base class
> (deamonBackend.py) because it looks like overloading the methods in
> yumDBUSBackend.py was not working, so when calling the methods from via
> dbus call the stubs in the baseclass, and they are not doing any action.
> I have add a call to a self._check_init() in each dbus method, it checks
> if Init() has been called and call it if not, it also setup if we want
> to use the yum cache or not.
>
> Howto Test it using d-feet:
>
> cd backends/yum2/helpers
> sudo ./yumDBUSBackend.py
>
> in another console:
> sudo d-feet
>
> unfold 'org.freedesktop.PackageKitYumBackend'
> double click on 'GetUpdates()' under 'Methods'
> press 'Execute'
>
> You can see the result in the console running yumDBUSBackend.py
>
> Tim
> _______________________________________________
> PackageKit mailing list
> PackageKit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/packagekit
This file is need to make it work
[tim at hoth ~]$ cat
/etc/dbus-1/system.d/org.freedesktop.PackageKitYumBackend.conf
<!DOCTYPE busconfig PUBLIC
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<policy user="root">
<allow own="org.freedesktop.PackageKitYumBackend"/>
<allow send_destination="org.freedesktop.PackageKitYumBackend"/>
<allow send_interface="org.freedesktop.PackageKitBackend"/>
</policy>
<policy user="root">
<allow own="org.freedesktop.PackageKitYumBackend"/>
<allow send_destination="org.freedesktop.PackageKitYumBackend"/>
<allow send_interface="org.freedesktop.PackageKitBackend"/>
</policy>
<policy at_console="true">
<deny send_destination="org.freedesktop.PackageKitYumBackend"/>
<deny send_interface="org.freedesktop.PackageKitBackend"/>
</policy>
<policy context="default">
<deny own="org.freedesktop.PackageKitYumBackend"/>
<deny send_destination="org.freedesktop.PackageKitYumBackend"/>
<deny send_interface="org.freedesktop.PackageKitBackend"/>
</policy>
</busconfig>
Tim
More information about the PackageKit
mailing list