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-12-03 20:35:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2-update (Old) and /work/SRC/openSUSE:Factory/.yast2-update.new.31177 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-update" Fri Dec 3 20:35:26 2021 rev:146 rq:935148 version:4.4.6 Changes: -------- --- /work/SRC/openSUSE:Factory/yast2-update/yast2-update.changes 2021-12-02 02:29:13.075786074 +0100 +++ /work/SRC/openSUSE:Factory/.yast2-update.new.31177/yast2-update.changes 2021-12-03 20:35:39.572165892 +0100 @@ -1,0 +2,7 @@ +Wed Dec 1 07:50:46 UTC 2021 - Imobach Gonzalez Sosa <igonzalezs...@suse.com> + +- Do not crash after selecting the system to upgrade when using + the full medium (bsc#1193212). +- 4.4.6 + +------------------------------------------------------------------- Old: ---- yast2-update-4.4.5.tar.bz2 New: ---- yast2-update-4.4.6.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-update.spec ++++++ --- /var/tmp/diff_new_pack.0mI8iI/_old 2021-12-03 20:35:40.136163831 +0100 +++ /var/tmp/diff_new_pack.0mI8iI/_new 2021-12-03 20:35:40.136163831 +0100 @@ -17,7 +17,7 @@ Name: yast2-update -Version: 4.4.5 +Version: 4.4.6 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 -# ProductSpec API -BuildRequires: yast2 >= 4.4.21 -# ProductSpec API -BuildRequires: yast2-packager >= 4.4.13 +# Product#register_target +BuildRequires: yast2 >= 4.4.25 +# ProductSpec#register_target +BuildRequires: yast2-packager >= 4.4.15 # xmllint BuildRequires: libxml2-tools # control.rng @@ -47,11 +47,11 @@ # Y2Storage::Crypttab.save_encryption_names Requires: yast2-storage-ng >= 4.2.42 -# ProductSpec API -Requires: yast2 >= 4.4.21 +# Product#register_target +Requires: yast2 >= 4.4.25 Requires: yast2-installation -# ProductSpec API -Requires: yast2-packager >= 4.4.13 +# ProductSpec#register_target +Requires: yast2-packager >= 4.4.15 # Pkg::SetAdditionalVendors Requires: yast2-pkg-bindings >= 4.3.3 Requires: yast2-ruby-bindings >= 1.0.0 ++++++ yast2-update-4.4.5.tar.bz2 -> yast2-update-4.4.6.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-update-4.4.5/package/yast2-update.changes new/yast2-update-4.4.6/package/yast2-update.changes --- old/yast2-update-4.4.5/package/yast2-update.changes 2021-11-29 17:42:40.000000000 +0100 +++ new/yast2-update-4.4.6/package/yast2-update.changes 2021-12-02 11:00:41.000000000 +0100 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Wed Dec 1 07:50:46 UTC 2021 - Imobach Gonzalez Sosa <igonzalezs...@suse.com> + +- Do not crash after selecting the system to upgrade when using + the full medium (bsc#1193212). +- 4.4.6 + +------------------------------------------------------------------- Fri Nov 26 15:02:03 UTC 2021 - David Diaz <dgonza...@suse.com> - Remove obsolete code for treating /var differently when mounting diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-update-4.4.5/package/yast2-update.spec new/yast2-update-4.4.6/package/yast2-update.spec --- old/yast2-update-4.4.5/package/yast2-update.spec 2021-11-29 17:42:40.000000000 +0100 +++ new/yast2-update-4.4.6/package/yast2-update.spec 2021-12-02 11:00:41.000000000 +0100 @@ -17,7 +17,7 @@ Name: yast2-update -Version: 4.4.5 +Version: 4.4.6 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 -# ProductSpec API -BuildRequires: yast2 >= 4.4.21 -# ProductSpec API -BuildRequires: yast2-packager >= 4.4.13 +# Product#register_target +BuildRequires: yast2 >= 4.4.25 +# ProductSpec#register_target +BuildRequires: yast2-packager >= 4.4.15 # xmllint BuildRequires: libxml2-tools # control.rng @@ -47,11 +47,11 @@ # Y2Storage::Crypttab.save_encryption_names Requires: yast2-storage-ng >= 4.2.42 -# ProductSpec API -Requires: yast2 >= 4.4.21 +# Product#register_target +Requires: yast2 >= 4.4.25 Requires: yast2-installation -# ProductSpec API -Requires: yast2-packager >= 4.4.13 +# ProductSpec#register_target +Requires: yast2-packager >= 4.4.15 # 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.5/src/include/update/rootpart.rb new/yast2-update-4.4.6/src/include/update/rootpart.rb --- old/yast2-update-4.4.5/src/include/update/rootpart.rb 2021-11-29 17:42:40.000000000 +0100 +++ new/yast2-update-4.4.6/src/include/update/rootpart.rb 2021-12-02 11:00:41.000000000 +0100 @@ -28,7 +28,6 @@ # calling this module. require "yast" -require "y2packager/medium_type" require "y2packager/original_repository_setup" require "y2packager/product_spec" require "y2packager/repository" @@ -521,23 +520,17 @@ Convert.to_symbol(ret) end + # Finds the target distribution (register_target) + # + # Currently, all products have the same "register_target". + # + # @return [String] Target distribution def target_distribution # FIXME: this is the same as in src/lib/update/clients/inst_update_partition_auto.rb:113 - 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_product&.register_target || "" - end - - base_products = Product.FindBaseProducts - - # empty target distribution disables service compatibility check in case - # the base product cannot be found - target_distro = base_products ? base_products.first["register_target"] : "" - log.info "Base product target distribution: #{target_distro}" - - target_distro + products = Y2Packager::ProductSpec.base_products + register_target = products.first&.register_target || "" + log.info "Base product target distribution: #{register_target}" + register_target end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-update-4.4.5/src/lib/update/clients/inst_update_partition_auto.rb new/yast2-update-4.4.6/src/lib/update/clients/inst_update_partition_auto.rb --- old/yast2-update-4.4.5/src/lib/update/clients/inst_update_partition_auto.rb 2021-11-29 17:42:40.000000000 +0100 +++ new/yast2-update-4.4.6/src/lib/update/clients/inst_update_partition_auto.rb 2021-12-02 11:00:41.000000000 +0100 @@ -111,12 +111,8 @@ # special version that respect online specific target distro def target_distro - product = Y2Packager::ProductSpec.base_products.find { |p| p.respond_to?(:register_target) } - if product - product.register_target || "" - else - target_distribution - end + products = Y2Packager::ProductSpec.base_products + products.first&.register_target || "" end end end