summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2012-12-20 17:51:45 (GMT)
committerCole Robinson <crobinso@redhat.com>2012-12-20 17:55:35 (GMT)
commit1abd03ed80b47a5506798d341924e2b3d577a8fc (patch)
treea34a5fac8b6f6cfd6de246701b97c9a53004c170
parent32f74219b024ddbd6fac5301c58e27540541d569 (diff)
downloadvirt-manager-1abd03ed80b47a5506798d341924e2b3d577a8fc.zip
virt-manager-1abd03ed80b47a5506798d341924e2b3d577a8fc.tar.gz
virt-manager-1abd03ed80b47a5506798d341924e2b3d577a8fc.tar.xz
Fix packagekit package install on KDE with apper
Apper requires a uint, gnome-packagekit doesn't seem to care either way https://bugzilla.redhat.com/show_bug.cgi?id=882024
-rw-r--r--src/virtManager/packageutils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/virtManager/packageutils.py b/src/virtManager/packageutils.py
index 7ffe5be..dee5b1e 100644
--- a/src/virtManager/packageutils.py
+++ b/src/virtManager/packageutils.py
@@ -131,7 +131,8 @@ def packagekit_install(package_list):
# Set 2 hour timeout
timeout = 60 * 60 * 2
logging.debug("Installing packages: %s", package_list)
- pk_control.InstallPackageNames(0, package_list, "hide-confirm-search",
+ pk_control.InstallPackageNames(dbus.Uint32(0),
+ package_list, "hide-confirm-search",
timeout=timeout)
def packagekit_search(session, pk_control, package_name, packages):