summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorمؤيد السعدي <muayyad.alsadi@ojuba.org>2009-08-10 10:15:25 +0100
committerRichard Hughes <richard@hughsie.com>2009-08-10 10:15:25 +0100
commit410b46d3effd1b0d7599cad4ca1b0bdc6cdac03a (patch)
treeb1f5a01642526cfc4f663b8de32827af7c2f5794 /docs
parente35a731dd44d53663b586937eca65fae0b29098c (diff)
Fix up the python example in the FAQ
Signed-off-by: Richard Hughes <richard@hughsie.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/html/pk-faq.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/html/pk-faq.html b/docs/html/pk-faq.html
index 314ba7588..4a6f7e0dd 100644
--- a/docs/html/pk-faq.html
+++ b/docs/html/pk-faq.html
@@ -354,8 +354,8 @@ except dbus.DBusException, e:
sys.exit()
try:
proxy = bus.get_object('org.freedesktop.PackageKit', '/org/freedesktop/PackageKit')
- iface = dbus.Interface(proxy, 'org.freedesktop.PackageKit')
- iface.InstallPackageName('openoffice-clipart')
+ iface = dbus.Interface(proxy, 'org.freedesktop.PackageKit.Modify')
+ iface.InstallPackageNames(0, ["openoffice-clipart", "openoffice-clipart-extras"], "show-confirm-search,hide-finished")
except dbus.DBusException, e:
print 'Unable to use PackageKit: %s' % str(e)
</pre>