File 1856c1fa-support-Fix-minimum-version-check.patch of Package virt-manager

Subject: support: Fix minimum version check
From: Cole Robinson crobinso@redhat.com Wed Mar 6 13:05:47 2019 -0500
Date: Wed Mar 6 13:06:54 2019 -0500:
Git: 1856c1fa6501c7d37d360377937a82cfa2d1cd20

The original code for this was about version 0.7.3, but a refactor
accidentally changed it to 0.7.9 which is a libvirt version that
doesn't exist. Fix it

diff --git a/virtinst/support.py b/virtinst/support.py
index 0f0f6104..fabcfe7d 100644
--- a/virtinst/support.py
+++ b/virtinst/support.py
@@ -131,7 +131,7 @@ class _SupportCheck(object):
         for an 'unsupported' error from libvirt.
 
     @flag: A flag to check exists. This will be appended to the argument
-        list if run_args are provided, otherwise we will only check against
+        :list if run_args are provided, otherwise we will only check against
         that the flag is present in the python bindings.
 
     @hv_version: A dictionary with hypervisor names for keys, and
@@ -157,9 +157,9 @@ class _SupportCheck(object):
         versions = ([self.version] + list(self.hv_libvirt_version.values()))
         for vstr in versions:
             v = _version_str_to_int(vstr)
-            if vstr is not None and v != 0 and v < 7009:
+            if vstr is not None and v != 0 and v < 7003:
                 raise RuntimeError("programming error: Cannot enforce "
-                    "support checks for libvirt versions less than 0.7.9, "
+                    "support checks for libvirt versions less than 0.7.3, "
                     "since required APIs were not available. ver=%s" % vstr)
 
     def check_support(self, conn, data):
openSUSE Build Service is sponsored by