[packagekit] yum2 backend

Robin Norwood rnorwood at redhat.com
Fri Feb 15 07:00:25 PST 2008


On Fri, 15 Feb 2008 14:41:17 +0100
Tim Lauridsen <tim.lauridsen at googlemail.com> wrote:

> 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

We have this file in /data/, but I can't get automake to actually
install it properly - anyone know what I'm doing wrong?

It's listed in Makefile.am like it should be...

-RN
 
> [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
> _______________________________________________
> PackageKit mailing list
> PackageKit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/packagekit


-- 
Robin Norwood
Red Hat, Inc.

"The Sage does nothing, yet nothing remains undone."
-Lao Tzu, Te Tao Ching



More information about the PackageKit mailing list