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 2026-03-08 17:25:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/virt-manager (Old)
 and      /work/SRC/openSUSE:Factory/.virt-manager.new.8177 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "virt-manager"

Sun Mar  8 17:25:52 2026 rev:288 rq:1337391 version:5.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/virt-manager/virt-manager.changes        
2026-03-05 17:14:35.225250427 +0100
+++ /work/SRC/openSUSE:Factory/.virt-manager.new.8177/virt-manager.changes      
2026-03-08 17:25:54.568402370 +0100
@@ -1,0 +2,7 @@
+Tue Mar  3 15:51:18 MST 2026 - [email protected]
+
+- Fix media detection failure to distinguish between sles16 and
+  sles16.1
+  virtinst-add-sle16-detection-support.patch
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ virtinst-add-sle16-detection-support.patch ++++++
--- /var/tmp/diff_new_pack.oVAHzn/_old  2026-03-08 17:25:56.420478439 +0100
+++ /var/tmp/diff_new_pack.oVAHzn/_new  2026-03-08 17:25:56.424478602 +0100
@@ -2,7 +2,16 @@
 ===================================================================
 --- virt-manager-5.1.0.orig/virtinst/install/urldetect.py
 +++ virt-manager-5.1.0/virtinst/install/urldetect.py
-@@ -271,20 +271,27 @@ class _SUSEContent:
+@@ -247,6 +247,8 @@ class _SUSEContent:
+             product_name = self.content_dict["LABEL"]
+         elif "," in self.content_dict.get("DISTRO", ""):
+             product_name = self.content_dict["DISTRO"].rsplit(",", 1)[1]
++        else:
++            product_name = self.content_dict["DISTRO"]
+ 
+         log.debug("SUSE content product_name=%s", product_name)
+         return product_name
+@@ -271,27 +273,38 @@ class _SUSEContent:
  
          # Special case, parse version out of a line like this
          # cpe:/o:opensuse:opensuse:13.2,openSUSE
@@ -16,28 +25,46 @@
          distro_version = distro_version.strip()
  
          if "Enterprise" in self.product_name or "SLES" in self.product_name 
or "Micro" in self.product_name:
++            product_name = self.product_name.strip().rsplit(' ')
              if " SAP " in self.product_name:
-                 sle_version = self.product_name.strip().rsplit(' ')[7]
+-                sle_version = self.product_name.strip().rsplit(' ')[7]
 -            if " High Performance " in self.product_name:
+-                sle_version = self.product_name.strip().rsplit(' ')[6]
++                sle_version = product_name[7]
 +            elif " High Performance " in self.product_name:
-                 sle_version = self.product_name.strip().rsplit(' ')[6]
++                sle_version = product_name[6]
 +            elif "SUSE SL Micro" in self.product_name:
-+                sle_version = self.product_name.strip().rsplit(' ')[3]
++                sle_version = product_name[3]
              else:
 -                if "SUSE SL Micro" in self.product_name:
 -                    sle_version = self.product_name.strip().rsplit(' ')[3]
 -                else:
 -                    sle_version = self.product_name.strip().rsplit(' ')[4]
-+                sle_version = self.product_name.strip().rsplit(' ')
+-            if len(self.product_name.strip().rsplit(' ')) > 5 and not " Micro 
" in self.product_name:
++                sle_version = product_name
 +                for num in sle_version:
 +                    num = num.replace(".0", "", 1)
 +                    if num.isnumeric():
 +                        sle_version = num
 +                        break
-             if len(self.product_name.strip().rsplit(' ')) > 5 and not " Micro 
" in self.product_name:
++            if len(product_name) > 1 and not " Micro " in self.product_name:
                  if " SAP " in self.product_name:
-                     sle_version = (sle_version + '.' + 
self.product_name.strip().rsplit(' ')[8][2])
-@@ -518,13 +525,20 @@ class _SuseDistro(_RHELDistro):
+-                    sle_version = (sle_version + '.' + 
self.product_name.strip().rsplit(' ')[8][2])
+-                if " High Performance " in self.product_name:
+-                    sle_version = (sle_version + '.' + 
self.product_name.strip().rsplit(' ')[7][2])
++                    sle_version = (sle_version + '.' + product_name[8][2])
++                elif " High Performance " in self.product_name:
++                    sle_version = (sle_version + '.' + product_name[7][2])
++                elif int(sle_version) <= 15:
++                    sle_version = (sle_version + '.' + product_name[5][2])
+                 else:
+-                    sle_version = (sle_version + '.' + 
self.product_name.strip().rsplit(' ')[5][2])
++                    if len(product_name) > 1 and int(product_name[2]) is not 
0:
++                        sle_version = (sle_version + '.' + product_name[2])
+             distro_version = sle_version
+ 
+         # SUSE Container as a Service Platform
+@@ -518,13 +531,28 @@ class _SuseDistro(_RHELDistro):
  
          if not cache.checked_for_suse_content:
              cache.checked_for_suse_content = True
@@ -55,10 +82,18 @@
 +                if not media_str:
 +                    # For SLES16 and Leap 16 install iso
 +                    media_str = 
cache.acquire_file_content("install/media.1/media")
++                    # media.1/products file on SLE16 doesn't help us much, 
rebuild products_str from media_str
++                    if media_str:
++                        media_str_lines = media_str.strip().splitlines()
++                        if "SLE" in media_str and len(media_str_lines) > 1:
++                            products_str = media_str_lines[1]
++                            products_str = products_str.replace('.', ' ')
++                            products_str = products_str.replace('-', ' 
').split()
++                            products_str = "DISTRO " + products_str[0] + " " 
+ products_str[1] + " " + products_str[2]
                  if media_str:
                      media_arch = "x86_64"
                      if 'aarch64' in media_str:
-@@ -580,6 +594,10 @@ class _SuseDistro(_RHELDistro):
+@@ -580,6 +608,10 @@ class _SuseDistro(_RHELDistro):
              if tree_arch == "ppc64":
                  self._kernel_paths.append(("suseboot/linux64", 
"suseboot/initrd64"))
  
@@ -69,7 +104,22 @@
          # Tested with SLES 12 for ppc64le, all s390x
          self._kernel_paths.append(("boot/%s/linux" % tree_arch, 
"boot/%s/initrd" % tree_arch))
          # Tested with Opensuse 10.0
-@@ -669,7 +687,7 @@ class _SLESDistro(_SuseDistro):
+@@ -607,8 +639,12 @@ class _SuseDistro(_RHELDistro):
+ 
+         if str(self._variant_prefix).startswith(("sles", "sled", "oes")):
+             sp_version = ""
+-            if len(distro_version.split(".", 1)) == 2:
+-                sp_version = "sp" + distro_version.split(".", 1)[1].strip()
++            d_version = distro_version.split(".", 1)
++            if len(d_version) == 2:
++                if int(d_version[0]) > 15:
++                    sp_version = "." + d_version[1].strip()
++                else:
++                    sp_version = "sp" + d_version[1].strip()
+ 
+             return self._variant_prefix + version + sp_version
+ 
+@@ -669,7 +705,7 @@ class _SLESDistro(_SuseDistro):
      PRETTY_NAME = "SLES"
      matching_distros = ["sles"]
      _variant_prefix = "sles"
@@ -78,7 +128,7 @@
      famregex = ".*SUSE Linux Enterprise.*"
  
  
-@@ -965,17 +983,17 @@ def _build_distro_list(osobj):
+@@ -965,17 +1001,17 @@ def _build_distro_list(osobj):
      allstores = [
          # Libosinfo takes priority
          _LibosinfoDistro,

Reply via email to