From da8faa00e507f356d3f8086c0b1383c57ff8da23 Mon Sep 17 00:00:00 2001 From: Charles Arnold Date: Thu, 29 Nov 2018 18:51:42 +0000 Subject: [PATCH] - bsc#1117846 - virt-manager: Checking for virtualization packages error virtman-load-stored-uris.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=447 --- virt-manager.changes | 7 +++++++ virt-manager.spec | 2 +- virtman-load-stored-uris.patch | 14 ++++---------- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/virt-manager.changes b/virt-manager.changes index f0d503e1..80f1cc70 100644 --- a/virt-manager.changes +++ b/virt-manager.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Nov 29 11:50:08 MST 2018 - carnold@suse.com + +- bsc#1117846 - virt-manager: Checking for virtualization packages + error + virtman-load-stored-uris.patch + ------------------------------------------------------------------- Tue Nov 27 13:13:15 MST 2018 - carnold@suse.com diff --git a/virt-manager.spec b/virt-manager.spec index caacea77..00e1ed35 100644 --- a/virt-manager.spec +++ b/virt-manager.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # diff --git a/virtman-load-stored-uris.patch b/virtman-load-stored-uris.patch index 46e6a0e9..19380681 100644 --- a/virtman-load-stored-uris.patch +++ b/virtman-load-stored-uris.patch @@ -5,27 +5,21 @@ Index: virt-manager-2.0.0/virtManager/connmanager.py =================================================================== --- virt-manager-2.0.0.orig/virtManager/connmanager.py +++ virt-manager-2.0.0/virtManager/connmanager.py -@@ -26,12 +26,23 @@ class vmmConnectionManager(vmmGObject): +@@ -26,11 +26,17 @@ class vmmConnectionManager(vmmGObject): def __init__(self): vmmGObject.__init__(self) + from .connect import vmmConnect -+ tryuri = vmmConnect.default_uri() -+ found_uri = False ++ default_uri = vmmConnect.default_uri() self._conns = {} # Load URIs from gsettings for uri in self.config.get_conn_uris(): + if uri == 'xen:///' or uri == 'qemu:///system': -+ if tryuri and tryuri != uri: -+ logging.debug("Skipping %s because it is incompatible with local host", uri) ++ if default_uri and default_uri != uri: ++ logging.debug("Skipping local connection %s because it is incompatible with the host", uri) + continue -+ found_uri = True self.add_conn(uri) -+ if tryuri and found_uri is False: -+ logging.debug("CEA:: Didn't connect with anything, use default %s", tryuri) -+ self.add_conn(tryuri) def _cleanup(self): - for conn in self._conns.values():