Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package yast2-packager for openSUSE:Factory 
checked in at 2022-03-18 16:41:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-packager (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-packager.new.25692 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-packager"

Fri Mar 18 16:41:40 2022 rev:423 rq:962356 version:4.4.26

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-packager/yast2-packager.changes    
2022-02-15 23:57:12.888201669 +0100
+++ /work/SRC/openSUSE:Factory/.yast2-packager.new.25692/yast2-packager.changes 
2022-03-18 16:41:48.849167492 +0100
@@ -1,0 +2,20 @@
+Thu Mar 17 08:01:35 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz>
+
+- Read the products from libzypp in installed system, fixes crash
+  during online migration (related to jsc#SLE-17309)
+- 4.4.26
+
+-------------------------------------------------------------------
+Tue Mar 15 17:20:53 UTC 2022 - Steffen Winterfeldt <snw...@suse.com>
+
+- do not keep file handle to repo metadata open accidentally (bsc#1196061)
+- 4.4.25
+
+-------------------------------------------------------------------
+Tue Mar  8 13:37:35 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz>
+
+- Properly set the repository alias for the Full medium add-ons
+  (bsc#1193214)
+- 4.4.24
+
+-------------------------------------------------------------------

Old:
----
  yast2-packager-4.4.23.tar.bz2

New:
----
  yast2-packager-4.4.26.tar.bz2

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

Other differences:
------------------
++++++ yast2-packager.spec ++++++
--- /var/tmp/diff_new_pack.WGMF4N/_old  2022-03-18 16:41:49.401167888 +0100
+++ /var/tmp/diff_new_pack.WGMF4N/_new  2022-03-18 16:41:49.405167891 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-packager
-Version:        4.4.23
+Version:        4.4.26
 Release:        0
 Summary:        YaST2 - Package Library
 License:        GPL-2.0-or-later

++++++ yast2-packager-4.4.23.tar.bz2 -> yast2-packager-4.4.26.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-packager-4.4.23/package/yast2-packager.changes 
new/yast2-packager-4.4.26/package/yast2-packager.changes
--- old/yast2-packager-4.4.23/package/yast2-packager.changes    2022-02-14 
13:55:18.000000000 +0100
+++ new/yast2-packager-4.4.26/package/yast2-packager.changes    2022-03-17 
09:58:58.000000000 +0100
@@ -1,4 +1,24 @@
 -------------------------------------------------------------------
+Thu Mar 17 08:01:35 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz>
+
+- Read the products from libzypp in installed system, fixes crash
+  during online migration (related to jsc#SLE-17309)
+- 4.4.26
+
+-------------------------------------------------------------------
+Tue Mar 15 17:20:53 UTC 2022 - Steffen Winterfeldt <snw...@suse.com>
+
+- do not keep file handle to repo metadata open accidentally (bsc#1196061)
+- 4.4.25
+
+-------------------------------------------------------------------
+Tue Mar  8 13:37:35 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz>
+
+- Properly set the repository alias for the Full medium add-ons
+  (bsc#1193214)
+- 4.4.24
+
+-------------------------------------------------------------------
 Mon Feb 14 09:40:00 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz>
 
 - Remove duplicate repositories created at the end of installation
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-packager-4.4.23/package/yast2-packager.spec 
new/yast2-packager-4.4.26/package/yast2-packager.spec
--- old/yast2-packager-4.4.23/package/yast2-packager.spec       2022-02-14 
13:55:18.000000000 +0100
+++ new/yast2-packager-4.4.26/package/yast2-packager.spec       2022-03-17 
09:58:58.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-packager
-Version:        4.4.23
+Version:        4.4.26
 Release:        0
 Summary:        YaST2 - Package Library
 License:        GPL-2.0-or-later
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-packager-4.4.23/src/include/packager/repositories_include.rb 
new/yast2-packager-4.4.26/src/include/packager/repositories_include.rb
--- old/yast2-packager-4.4.23/src/include/packager/repositories_include.rb      
2022-02-14 13:55:18.000000000 +0100
+++ new/yast2-packager-4.4.26/src/include/packager/repositories_include.rb      
2022-03-17 09:58:58.000000000 +0100
@@ -146,7 +146,15 @@
           next
         end
 
-        alias_name = (force_alias == "") ? propose_alias(product.name) : 
force_alias
+        alias_name = if force_alias != ""
+          force_alias
+        elsif product.media_name && !product.media_name.empty?
+          propose_alias(product.media_name)
+        elsif product.name && !product.name.empty?
+          propose_alias(product.name)
+        end
+
+        alias_name = propose_alias(Packages.fallback_name) if alias_name.empty?
 
         # map with repository parameters: $[ "enabled" : boolean,
         # "autorefresh" : boolean, "raw_name" : string, "alias" : string,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-packager-4.4.23/src/lib/y2packager/product_spec_reader.rb 
new/yast2-packager-4.4.26/src/lib/y2packager/product_spec_reader.rb
--- old/yast2-packager-4.4.23/src/lib/y2packager/product_spec_reader.rb 
2022-02-14 13:55:18.000000000 +0100
+++ new/yast2-packager-4.4.26/src/lib/y2packager/product_spec_reader.rb 
2022-03-17 09:58:58.000000000 +0100
@@ -26,6 +26,7 @@
   # Reads product specification from different sources
   class ProductSpecReader
     include Yast::Logger
+    Yast.import "Mode"
 
     # Returns the list of product specifications.
     #
@@ -33,6 +34,9 @@
     def products
       # products_from_control || products_from_offline || products_from_libzypp
 
+      # online migration (in installed system)
+      return products_from_libzypp if Yast::Mode.normal
+
       if InstallationMedium.contain_multi_repos?
         products_from_multi_repos
       elsif InstallationMedium.contain_repo?
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-packager-4.4.23/src/lib/y2packager/solvable_pool.rb 
new/yast2-packager-4.4.26/src/lib/y2packager/solvable_pool.rb
--- old/yast2-packager-4.4.23/src/lib/y2packager/solvable_pool.rb       
2022-02-14 13:55:18.000000000 +0100
+++ new/yast2-packager-4.4.26/src/lib/y2packager/solvable_pool.rb       
2022-03-17 09:58:58.000000000 +0100
@@ -34,6 +34,9 @@
       File.open(primary_xml) do |gz|
         fd = Solv.xfopen_fd(primary_xml, gz.fileno)
         repo.add_rpmmd(fd, nil, 0)
+        # Explicitly close the file, do not rely on garbage collection to do
+        # it in a timely manner (bsc#1196061).
+        fd.close
       end
       pool.createwhatprovides
     end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-packager-4.4.23/test/lib/product_spec_reader_test.rb 
new/yast2-packager-4.4.26/test/lib/product_spec_reader_test.rb
--- old/yast2-packager-4.4.23/test/lib/product_spec_reader_test.rb      
2022-02-14 13:55:18.000000000 +0100
+++ new/yast2-packager-4.4.26/test/lib/product_spec_reader_test.rb      
2022-03-17 09:58:58.000000000 +0100
@@ -46,6 +46,7 @@
       allow(Y2Packager::ProductSpecReaders::Libzypp).to 
receive(:new).and_return(libzypp_reader)
       allow(Y2Packager::InstallationMedium).to 
receive(:contain_repo?).and_return(false)
       allow(Y2Packager::InstallationMedium).to 
receive(:contain_multi_repos?).and_return(false)
+      allow(Yast::Mode).to receive(:normal).and_return(false)
     end
 
     context "when medium does not contain any repository" do
@@ -71,6 +72,16 @@
       end
 
       it "returns the libzypp products" do
+        expect(reader.products).to eq(libzypp_products)
+      end
+    end
+
+    context "in installed system" do
+      before do
+        allow(Yast::Mode).to receive(:normal).and_return(true)
+      end
+
+      it "returns the libzypp products" do
         expect(reader.products).to eq(libzypp_products)
       end
     end

Reply via email to