[packagekit] dbus policies issue

Sveta Anisimova svet at bu.edu
Mon Mar 3 11:50:14 PST 2008


Hi,

I am testing an UpdatePackage function call in frontend.py
and getting the following error:

[svet at svet autoupdate]$ ./pk-frontend-test-test.py update_package
"xemacs-packages-base;20070427-1.fc8;noarch;development"
Traceback (most recent call last):
   File "./pk-frontend-test-test.py", line 168, in <module>
     globals()[args[0]](args[1:])
   File "./pk-frontend-test-test.py", line 155, in update_package
     return p.UpdatePackage(args[0][0])
   File "/usr/lib/python2.5/site-packages/packagekit/pkdbus.py", line 
40, in wrapper
     raise PackageKitException(e)
packagekit.pkexceptions.PackageKitException: 
org.freedesktop.PackageKit.RefusedByPolicy:
org.freedesktop.packagekit.update-package auth_self_keep_always

does anyone encounter a similar error and if so how do you debug it?

the function code I am using :

def update_package(*args):
     if len(args)!=1 or len(args[0])!=1:
         print "update_package only takes single arg"
         raise PackageKitTransactionFailure

     return p.UpdatePackage(args[0][0])


Thanks a lot in advance,

sveta




More information about the PackageKit mailing list