Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package yast2-update for openSUSE:Factory 
checked in at 2021-11-20 02:38:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-update (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-update.new.1895 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-update"

Sat Nov 20 02:38:15 2021 rev:144 rq:931641 version:4.4.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-update/yast2-update.changes        
2021-09-09 23:07:23.836820728 +0200
+++ /work/SRC/openSUSE:Factory/.yast2-update.new.1895/yast2-update.changes      
2021-11-20 02:38:44.804858050 +0100
@@ -1,0 +2,6 @@
+Mon Nov 15 13:10:22 UTC 2021 - Imobach Gonzalez Sosa <igonzalezs...@suse.com>
+
+- Adapt to the ProductSpec API (bsc#1192626).
+- 4.4.4
+
+-------------------------------------------------------------------

Old:
----
  yast2-update-4.4.3.tar.bz2

New:
----
  yast2-update-4.4.4.tar.bz2

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

Other differences:
------------------
++++++ yast2-update.spec ++++++
--- /var/tmp/diff_new_pack.cFX6si/_old  2021-11-20 02:38:45.300856413 +0100
+++ /var/tmp/diff_new_pack.cFX6si/_new  2021-11-20 02:38:45.304856401 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-update
-Version:        4.4.3
+Version:        4.4.4
 Release:        0
 Summary:        YaST2 - Update
 License:        GPL-2.0-only
@@ -29,10 +29,10 @@
 BuildRequires:  update-desktop-files
 BuildRequires:  yast2-devtools >= 4.2.2
 BuildRequires:  yast2-ruby-bindings >= 1.0.0
-# Y2Packager::OriginalRepositorySetup
-BuildRequires:  yast2 >= 4.2.71
-# Packages#proposal_for_update
-BuildRequires:  yast2-packager >= 3.2.13
+# ProductSpec API
+BuildRequires:  yast2 >= 4.4.21
+# ProductSpec API
+BuildRequires:  yast2-packager >= 4.4.13
 # xmllint
 BuildRequires:  libxml2-tools
 # control.rng
@@ -47,11 +47,11 @@
 
 # Y2Storage::Crypttab.save_encryption_names
 Requires:       yast2-storage-ng >= 4.2.42
-# Y2Packager::OriginalRepositorySetup
-Requires:       yast2 >= 4.2.71
+# ProductSpec API
+Requires:       yast2 >= 4.4.21
 Requires:       yast2-installation
-# product_update_summary, product_update_warning
-Requires:       yast2-packager >= 4.2.33
+# ProductSpec API
+Requires:       yast2-packager >= 4.4.13
 # Pkg::SetAdditionalVendors
 Requires:       yast2-pkg-bindings >= 4.3.3
 Requires:       yast2-ruby-bindings >= 1.0.0

++++++ yast2-update-4.4.3.tar.bz2 -> yast2-update-4.4.4.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-update-4.4.3/.github/workflows/ci.yml 
new/yast2-update-4.4.4/.github/workflows/ci.yml
--- old/yast2-update-4.4.3/.github/workflows/ci.yml     2021-09-07 
14:05:32.000000000 +0200
+++ new/yast2-update-4.4.4/.github/workflows/ci.yml     2021-11-15 
14:26:48.000000000 +0100
@@ -8,7 +8,8 @@
 jobs:
   Tests:
     runs-on: ubuntu-latest
-    container: registry.opensuse.org/yast/head/containers/yast-ruby:latest
+    container:
+      image: registry.opensuse.org/yast/head/containers/yast-ruby:latest
 
     steps:
 
@@ -33,7 +34,8 @@
 
   Rubocop:
     runs-on: ubuntu-latest
-    container: registry.opensuse.org/yast/head/containers/yast-ruby:latest
+    container:
+      image: registry.opensuse.org/yast/head/containers/yast-ruby:latest
 
     steps:
 
@@ -45,7 +47,8 @@
 
   Package:
     runs-on: ubuntu-latest
-    container: registry.opensuse.org/yast/head/containers/yast-ruby:latest
+    container:
+      image: registry.opensuse.org/yast/head/containers/yast-ruby:latest
 
     steps:
 
@@ -57,7 +60,8 @@
 
   Yardoc:
     runs-on: ubuntu-latest
-    container: registry.opensuse.org/yast/head/containers/yast-ruby:latest
+    container:
+      image: registry.opensuse.org/yast/head/containers/yast-ruby:latest
 
     steps:
 
@@ -71,7 +75,8 @@
   # checks into one job avoids that overhead
   Checks:
     runs-on: ubuntu-latest
-    container: registry.opensuse.org/yast/head/containers/yast-ruby:latest
+    container:
+      image: registry.opensuse.org/yast/head/containers/yast-ruby:latest
 
     steps:
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-update-4.4.3/package/yast2-update.changes 
new/yast2-update-4.4.4/package/yast2-update.changes
--- old/yast2-update-4.4.3/package/yast2-update.changes 2021-09-07 
14:05:32.000000000 +0200
+++ new/yast2-update-4.4.4/package/yast2-update.changes 2021-11-15 
14:26:48.000000000 +0100
@@ -1,4 +1,10 @@
 -------------------------------------------------------------------
+Mon Nov 15 13:10:22 UTC 2021 - Imobach Gonzalez Sosa <igonzalezs...@suse.com>
+
+- Adapt to the ProductSpec API (bsc#1192626).
+- 4.4.4
+
+-------------------------------------------------------------------
 Mon Sep  6 14:08:12 UTC 2021 - Ladislav Slez??k <lsle...@suse.cz>
 
 - Fixed crash during system upgrade (synchronize the YaST and
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-update-4.4.3/package/yast2-update.spec 
new/yast2-update-4.4.4/package/yast2-update.spec
--- old/yast2-update-4.4.3/package/yast2-update.spec    2021-09-07 
14:05:32.000000000 +0200
+++ new/yast2-update-4.4.4/package/yast2-update.spec    2021-11-15 
14:26:48.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-update
-Version:        4.4.3
+Version:        4.4.4
 Release:        0
 Summary:        YaST2 - Update
 Group:          System/YaST
@@ -29,10 +29,10 @@
 BuildRequires:  update-desktop-files
 BuildRequires:  yast2-devtools >= 4.2.2
 BuildRequires:  yast2-ruby-bindings >= 1.0.0
-# Y2Packager::OriginalRepositorySetup
-BuildRequires:  yast2 >= 4.2.71
-# Packages#proposal_for_update
-BuildRequires:  yast2-packager >= 3.2.13
+# ProductSpec API
+BuildRequires:  yast2 >= 4.4.21
+# ProductSpec API
+BuildRequires:  yast2-packager >= 4.4.13
 # xmllint
 BuildRequires:  libxml2-tools
 # control.rng
@@ -47,11 +47,11 @@
 
 # Y2Storage::Crypttab.save_encryption_names
 Requires:       yast2-storage-ng >= 4.2.42
-# Y2Packager::OriginalRepositorySetup
-Requires:       yast2 >= 4.2.71
+# ProductSpec API
+Requires:       yast2 >= 4.4.21
 Requires:       yast2-installation
-# product_update_summary, product_update_warning
-Requires:       yast2-packager >= 4.2.33
+# ProductSpec API
+Requires:       yast2-packager >= 4.4.13
 # Pkg::SetAdditionalVendors
 Requires:       yast2-pkg-bindings >= 4.3.3
 Requires:       yast2-ruby-bindings >= 1.0.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-update-4.4.3/src/include/update/rootpart.rb 
new/yast2-update-4.4.4/src/include/update/rootpart.rb
--- old/yast2-update-4.4.3/src/include/update/rootpart.rb       2021-09-07 
14:05:32.000000000 +0200
+++ new/yast2-update-4.4.4/src/include/update/rootpart.rb       2021-11-15 
14:26:48.000000000 +0100
@@ -30,7 +30,7 @@
 
 require "y2packager/medium_type"
 require "y2packager/original_repository_setup"
-require "y2packager/product_control_product"
+require "y2packager/product_spec"
 require "y2packager/repository"
 
 module Yast
@@ -523,10 +523,11 @@
 
     def target_distribution
       # FIXME: this is the same as in 
src/lib/update/clients/inst_update_partition_auto.rb:113
-      if Y2Packager::MediumType.offline? || Y2Packager::MediumType.online?
-        control_products = Y2Packager::ProductControlProduct.products
+      if Y2Packager::MediumType.online?
+        control_product = Y2Packager::ProductSpec.base_products
+          .find { |p| p.respond_to?(:register_target) }
         # currently all products have the same "register_target" value
-        return control_products.first&.register_target || ""
+        return control_product&.register_target || ""
       end
 
       base_products = Product.FindBaseProducts
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-update-4.4.3/src/lib/update/clients/inst_update_partition_auto.rb 
new/yast2-update-4.4.4/src/lib/update/clients/inst_update_partition_auto.rb
--- old/yast2-update-4.4.3/src/lib/update/clients/inst_update_partition_auto.rb 
2021-09-07 14:05:32.000000000 +0200
+++ new/yast2-update-4.4.4/src/lib/update/clients/inst_update_partition_auto.rb 
2021-11-15 14:26:48.000000000 +0100
@@ -22,7 +22,7 @@
 
 require "yaml"
 require "y2packager/medium_type"
-require "y2packager/product_control_product"
+require "y2packager/product_spec"
 
 module Yast
   class InstUpdatePartitionAutoClient < Client
@@ -111,10 +111,9 @@
 
     # special version that respect online specific target distro
     def target_distro
-      if Y2Packager::MediumType.online?
-        control_products = Y2Packager::ProductControlProduct.products
-        # currently all products have the same "register_target" value
-        control_products.first&.register_target || ""
+      product = Y2Packager::ProductSpec.base_products.find { |p| 
p.respond_to?(:register_target) }
+      if product
+        product.register_target || ""
       else
         target_distribution
       end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-update-4.4.3/test/inst_update_partition_auto_test.rb 
new/yast2-update-4.4.4/test/inst_update_partition_auto_test.rb
--- old/yast2-update-4.4.3/test/inst_update_partition_auto_test.rb      
2021-09-07 14:05:32.000000000 +0200
+++ new/yast2-update-4.4.4/test/inst_update_partition_auto_test.rb      
2021-11-15 14:26:48.000000000 +0100
@@ -21,6 +21,7 @@
       allow(Yast::Pkg).to receive(:TargetLoad).and_return(true)
       allow(Y2Packager::MediumType).to receive(:online?).and_return(false)
       stub_subject(subject)
+      allow(Y2Packager::ProductSpec).to receive(:base_products).and_return([])
     end
 
     context "when root partition is mounted" do

Reply via email to