virt-manager/virt-manager-1.3.1-disable-packagekit.patch

38 lines
1.4 KiB
Diff

--- virt-manager-1.3.1/virtManager/engine.py.orig 2015-12-26 19:39:11.909828597 +0100
+++ virt-manager-1.3.1/virtManager/engine.py 2015-12-26 23:15:10.120220049 +0100
@@ -214,33 +214,7 @@
def _add_default_conn(self):
manager = self.get_manager()
- # Manager fail message
- msg = _("Could not detect a default hypervisor. Make\n"
- "sure the appropriate virtualization packages\n"
- "are installed (kvm, qemu, libvirt, etc.), and\n"
- "that libvirtd is running.\n\n"
- "A hypervisor connection can be manually\n"
- "added via File->Add Connection")
-
- logging.debug("Determining default libvirt URI")
-
- ret = None
- try:
- libvirt_packages = self.config.libvirt_packages
- packages = self.config.hv_packages + libvirt_packages
-
- ret = packageutils.check_packagekit(manager, manager.err, packages)
- except:
- logging.exception("Error talking to PackageKit")
-
- if ret:
- tryuri = "qemu:///system"
- else:
- tryuri = vmmConnect.default_uri()
-
- if tryuri is None:
- manager.set_startup_error(msg)
- return
+ tryuri = "qemu:///system"
warnmsg = _("The 'libvirtd' service will need to be started.\n\n"
"After that, virt-manager will connect to libvirt on\n"