Hello community, here is the log from the commit of package yast2-registration for openSUSE:Factory checked in at 2020-07-15 11:16:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2-registration (Old) and /work/SRC/openSUSE:Factory/.yast2-registration.new.3060 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-registration" Wed Jul 15 11:16:04 2020 rev:55 rq:820640 version:4.3.2 Changes: -------- --- /work/SRC/openSUSE:Factory/yast2-registration/yast2-registration.changes 2020-06-10 00:36:46.509134115 +0200 +++ /work/SRC/openSUSE:Factory/.yast2-registration.new.3060/yast2-registration.changes 2020-07-15 11:18:44.345223566 +0200 @@ -1,0 +2,7 @@ +Thu Jul 9 10:31:17 CEST 2020 - sch...@suse.de + +- Evaluating addon-list: Uses version without release for + connecting SCC (bsc#1162755). +- 4.3.2 + +------------------------------------------------------------------- Old: ---- yast2-registration-4.3.1.tar.bz2 New: ---- yast2-registration-4.3.2.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-registration.spec ++++++ --- /var/tmp/diff_new_pack.obActh/_old 2020-07-15 11:18:46.933226128 +0200 +++ /var/tmp/diff_new_pack.obActh/_new 2020-07-15 11:18:46.937226132 +0200 @@ -17,7 +17,7 @@ Name: yast2-registration -Version: 4.3.1 +Version: 4.3.2 Release: 0 Summary: YaST2 - Registration Module License: GPL-2.0-only ++++++ yast2-registration-4.3.1.tar.bz2 -> yast2-registration-4.3.2.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-registration-4.3.1/package/yast2-registration.changes new/yast2-registration-4.3.2/package/yast2-registration.changes --- old/yast2-registration-4.3.1/package/yast2-registration.changes 2020-05-28 18:25:51.000000000 +0200 +++ new/yast2-registration-4.3.2/package/yast2-registration.changes 2020-07-13 11:13:04.000000000 +0200 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Thu Jul 9 10:31:17 CEST 2020 - sch...@suse.de + +- Evaluating addon-list: Uses version without release for + connecting SCC (bsc#1162755). +- 4.3.2 + +------------------------------------------------------------------- Thu May 28 10:50:51 UTC 2020 - Martin Vidner <mvid...@suse.com> - Declining/refusal of an addon license means canceling all addons. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-registration-4.3.1/package/yast2-registration.spec new/yast2-registration-4.3.2/package/yast2-registration.spec --- old/yast2-registration-4.3.1/package/yast2-registration.spec 2020-05-28 18:25:51.000000000 +0200 +++ new/yast2-registration-4.3.2/package/yast2-registration.spec 2020-07-13 11:13:04.000000000 +0200 @@ -17,7 +17,7 @@ Name: yast2-registration -Version: 4.3.1 +Version: 4.3.2 Release: 0 Summary: YaST2 - Registration Module License: GPL-2.0-only diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-registration-4.3.1/src/lib/registration/registration.rb new/yast2-registration-4.3.2/src/lib/registration/registration.rb --- old/yast2-registration-4.3.1/src/lib/registration/registration.rb 2020-05-28 18:25:51.000000000 +0200 +++ new/yast2-registration-4.3.2/src/lib/registration/registration.rb 2020-07-13 11:13:04.000000000 +0200 @@ -153,7 +153,10 @@ log.info "Reading available addons for product: #{base_product["name"]}" - remote_product = SwMgmt.remote_product(base_product) + # base_product_to_register returns "version_version" for the version + # whereas installed_base_product returns "version_release". + # SCC needs in this case the version without the release. + remote_product = SwMgmt.remote_product(base_product, version_release: false) addons = SUSE::Connect::YaST.show_product(remote_product, connect_params).extensions || [] addons.each { |a| log.info "Found available addon: #{a.inspect}" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-registration-4.3.1/test/registration_spec.rb new/yast2-registration-4.3.2/test/registration_spec.rb --- old/yast2-registration-4.3.1/test/registration_spec.rb 2020-05-28 18:25:51.000000000 +0200 +++ new/yast2-registration-4.3.2/test/registration_spec.rb 2020-07-13 11:13:04.000000000 +0200 @@ -153,6 +153,13 @@ "sle-module-legacy", "sle-module-web-scripting", "sle-module-public-cloud", "sle-module-adv-systems-management", "sle-hae") end + + it "uses version without release for connecting SCC" do + expect(Registration::SwMgmt).to receive(:remote_product).with( + base_product, version_release: false + ) + Registration::Registration.new.get_addon_list + end end end