Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package virt-manager for openSUSE:Factory 
checked in at 2024-05-09 12:07:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/virt-manager (Old)
 and      /work/SRC/openSUSE:Factory/.virt-manager.new.1880 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "virt-manager"

Thu May  9 12:07:39 2024 rev:252 rq:1172595 version:4.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/virt-manager/virt-manager.changes        
2024-03-08 18:07:27.850303919 +0100
+++ /work/SRC/openSUSE:Factory/.virt-manager.new.1880/virt-manager.changes      
2024-05-09 12:07:51.305835218 +0200
@@ -1,0 +2,7 @@
+Tue May  7 13:30:54 MDT 2024 - carn...@suse.com
+
+- bsc#1222738 - virt-manager shows SLE Micro 6.0 in suggested OS
+  version should be SL Micro 6.0
+  virtinst-add-slm-detection-support.patch
+
+-------------------------------------------------------------------

New:
----
  virtinst-add-slm-detection-support.patch

BETA DEBUG BEGIN:
  New:  version should be SL Micro 6.0
  virtinst-add-slm-detection-support.patch
BETA DEBUG END:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ virt-manager.spec ++++++
--- /var/tmp/diff_new_pack.jbVtMk/_old  2024-05-09 12:07:53.221904854 +0200
+++ /var/tmp/diff_new_pack.jbVtMk/_new  2024-05-09 12:07:53.221904854 +0200
@@ -148,10 +148,11 @@
 Patch181:       virtinst-add-slem-detection-support.patch
 Patch182:       virtinst-add-sle-hpc-support.patch
 Patch183:       virtinst-add-oracle-linux-support.patch
-Patch184:       virtinst-windows-server-detection.patch
-Patch185:       virtman-fix-shared-disk-request-alignment-error.patch
-Patch186:       virtman-language-fixes.patch
-Patch187:       virtman-fix-inspection-apps-window.patch
+Patch184:       virtinst-add-slm-detection-support.patch
+Patch185:       virtinst-windows-server-detection.patch
+Patch186:       virtman-fix-shared-disk-request-alignment-error.patch
+Patch187:       virtman-language-fixes.patch
+Patch188:       virtman-fix-inspection-apps-window.patch
 
 BuildArch:      noarch
 

++++++ virtinst-add-slm-detection-support.patch ++++++
Add support for detecting SUSE Linux Micro 6.0 and newer.
See also the osinfo-db package for the description file.
Note that starting with Micro version 6.0, the word "Enterprise" was
dropped from the Micro version name.

Index: virt-manager-4.1.0/virtinst/install/urldetect.py
===================================================================
--- virt-manager-4.1.0.orig/virtinst/install/urldetect.py
+++ virt-manager-4.1.0/virtinst/install/urldetect.py
@@ -271,13 +271,16 @@ class _SUSEContent(object):
                     ",", 1)[0].strip().rsplit(":")[4]
         distro_version = distro_version.strip()
 
-        if "Enterprise" in self.product_name or "SLES" in self.product_name:
+        if "Enterprise" in self.product_name or "SLES" in self.product_name or 
"Micro" in self.product_name:
             if " SAP " in self.product_name:
                 sle_version = self.product_name.strip().rsplit(' ')[7]
             if " High Performance " in self.product_name:
                 sle_version = self.product_name.strip().rsplit(' ')[6]
             else:
-                sle_version = self.product_name.strip().rsplit(' ')[4]
+                if "SUSE Linux Micro" in self.product_name:
+                    sle_version = self.product_name.strip().rsplit(' ')[3]
+                else:
+                    sle_version = self.product_name.strip().rsplit(' ')[4]
             if len(self.product_name.strip().rsplit(' ')) > 5 and not " Micro 
" in self.product_name:
                 if " SAP " in self.product_name:
                     sle_version = (sle_version + '.' +
@@ -708,6 +711,14 @@ class _MICRODistro(_SuseDistro):
     famregex = ".*SUSE Linux Enterprise Micro.*"
 
 
+class _SLMICRODistro(_SuseDistro):
+    PRETTY_NAME = "SLES"
+    matching_distros = ["slm"]
+    _variant_prefix = "slm"
+    _suse_regex = [".*SUSE Linux Micro*", ".*SUSE Micro*"]
+    famregex = ".*SUSE Linux Micro.*"
+
+
 class _CAASPDistro(_SuseDistro):
     PRETTY_NAME = "SLES"
     matching_distros = ["caasp"]
@@ -977,6 +988,7 @@ def _build_distro_list(osobj):
         _SLEDDistro,
         _OpensuseDistro,
         _MICRODistro,
+        _SLMICRODistro,
         _CAASPDistro,
         _OESDistro,
         _DebianDistro,

Reply via email to