From cc3c6e24a3fd9185d2d8d32a01afaebfabd494d2 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Sat, 2 May 2015 17:34:27 -0400 Subject: [PATCH] packageutils: Add some extra logging --- virtManager/packageutils.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/virtManager/packageutils.py b/virtManager/packageutils.py index 9af5dd96a..7489ca0d8 100644 --- a/virtManager/packageutils.py +++ b/virtManager/packageutils.py @@ -39,7 +39,7 @@ def check_packagekit(parent, errbox, packages): logging.debug("No PackageKit packages to search for.") return - logging.debug("Asking PackageKit what's installed locally.") + logging.debug("PackageKit check/install for packages=%s", packages) try: bus = Gio.bus_get_sync(Gio.BusType.SYSTEM, None) Gio.DBusProxy.new_sync(bus, 0, None, @@ -53,10 +53,14 @@ def check_packagekit(parent, errbox, packages): try: for package in packages[:]: if packagekit_isinstalled(package): + logging.debug("package=%s already installed, skipping it", + package) packages.remove(package) if packages: packagekit_install(parent, packages) + else: + logging.debug("Nothing to install") except Exception, e: # PackageKit frontend should report an error for us, so just log # the actual error @@ -100,6 +104,7 @@ def packagekit_install(parent, package_list): logging.debug("Installing packages: %s", package_list) pk_control.InstallPackageNames("(uass)", xid, package_list, "", timeout=timeout) + logging.debug("Install completed") ###################