virt-manager/virt-manager-1.0.1-disable-packagekit.patch
Silvan Calarco f80a572426 upstream patch to fix configuration errors after changing graphics type
disable packagekit check [release 1.0.1-6mamba;Tue May 20 2014]
2024-01-05 19:06:15 +01:00

39 lines
1.6 KiB
Diff

diff -ru virt-manager-1.0.1/virtManager/engine.py virt-manager-1.0.1.orig/virtManager/engine.py
--- virt-manager-1.0.1/virtManager/engine.py 2014-02-28 18:01:44.000000000 +0000
+++ virt-manager-1.0.1.orig/virtManager/engine.py 2014-05-20 12:30:00.637326092 +0000
@@ -180,33 +180,7 @@
self.timeout_add(1000, self._add_default_conn, manager)
def _add_default_conn(self, 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(always_system=True)
-
- 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"