[packagekit] yum2 backend

Tim Lauridsen tim.lauridsen at googlemail.com
Fri Feb 15 06:59:09 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

I have added a backend/yum2/helpers/testyum2.py script to test the
org.freedesktop.PackageKitYumBackend methods.


Tim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testyum2.py
Type: text/x-python
Size: 2874 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20080215/277eed15/attachment-0004.py>


More information about the PackageKit mailing list