Hello community,
here is the log from the commit of package yast2-registration for
openSUSE:Leap:15.2 checked in at 2020-02-27 06:41:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/yast2-registration (Old)
and /work/SRC/openSUSE:Leap:15.2/.yast2-registration.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-registration"
Thu Feb 27 06:41:39 2020 rev:150 rq:779303 version:4.2.35
Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/yast2-registration/yast2-registration.changes
2020-02-21 23:49:44.700613376 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.yast2-registration.new.26092/yast2-registration.changes
2020-02-27 06:41:41.161632437 +0100
@@ -1,0 +2,7 @@
+Tue Feb 18 16:34:38 UTC 2020 - Knut Anderssen <[email protected]>
+
+- Do not catch exceptions when getting the updates list from the
+ registration server (bsc#1162903)
+- 4.2.35
+
+-------------------------------------------------------------------
Old:
----
yast2-registration-4.2.34.tar.bz2
New:
----
yast2-registration-4.2.35.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-registration.spec ++++++
--- /var/tmp/diff_new_pack.I1Pgq2/_old 2020-02-27 06:41:41.445633028 +0100
+++ /var/tmp/diff_new_pack.I1Pgq2/_new 2020-02-27 06:41:41.445633028 +0100
@@ -17,7 +17,7 @@
Name: yast2-registration
-Version: 4.2.34
+Version: 4.2.35
Release: 0
Summary: YaST2 - Registration Module
License: GPL-2.0-only
++++++ yast2-registration-4.2.34.tar.bz2 -> yast2-registration-4.2.35.tar.bz2
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-registration-4.2.34/package/yast2-registration.changes
new/yast2-registration-4.2.35/package/yast2-registration.changes
--- old/yast2-registration-4.2.34/package/yast2-registration.changes
2020-02-17 09:12:28.000000000 +0100
+++ new/yast2-registration-4.2.35/package/yast2-registration.changes
2020-02-19 11:51:11.000000000 +0100
@@ -1,4 +1,11 @@
-------------------------------------------------------------------
+Tue Feb 18 16:34:38 UTC 2020 - Knut Anderssen <[email protected]>
+
+- Do not catch exceptions when getting the updates list from the
+ registration server (bsc#1162903)
+- 4.2.35
+
+-------------------------------------------------------------------
Mon Feb 17 06:51:38 UTC 2020 - Imobach Gonzalez Sosa <[email protected]>
- Fix a typo in the online search UI (jsc#SLE-9109).
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-registration-4.2.34/package/yast2-registration.spec
new/yast2-registration-4.2.35/package/yast2-registration.spec
--- old/yast2-registration-4.2.34/package/yast2-registration.spec
2020-02-17 09:12:28.000000000 +0100
+++ new/yast2-registration-4.2.35/package/yast2-registration.spec
2020-02-19 11:51:11.000000000 +0100
@@ -17,7 +17,7 @@
Name: yast2-registration
-Version: 4.2.34
+Version: 4.2.35
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.2.34/src/lib/registration/registration.rb
new/yast2-registration-4.2.35/src/lib/registration/registration.rb
--- old/yast2-registration-4.2.34/src/lib/registration/registration.rb
2020-02-17 09:12:28.000000000 +0100
+++ new/yast2-registration-4.2.35/src/lib/registration/registration.rb
2020-02-19 11:51:11.000000000 +0100
@@ -214,10 +214,7 @@
log.info "Reading available updates for product: #{product["name"]}"
remote_product = SwMgmt.remote_product(product)
- updates = []
- ConnectHelpers.catch_registration_errors do
- updates = SUSE::Connect::YaST.list_installer_updates(remote_product,
connect_params)
- end
+ updates = SUSE::Connect::YaST.list_installer_updates(remote_product,
connect_params)
log.info "Updates for '#{product["name"]}' are available at '#{updates}'"
updates
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-registration-4.2.34/test/registration_spec.rb
new/yast2-registration-4.2.35/test/registration_spec.rb
--- old/yast2-registration-4.2.34/test/registration_spec.rb 2020-02-17
09:12:28.000000000 +0100
+++ new/yast2-registration-4.2.35/test/registration_spec.rb 2020-02-19
11:51:11.000000000 +0100
@@ -259,6 +259,16 @@
expect(subject.get_updates_list).to eq(updates)
end
end
+
+ context "when an exception connecting to the server takes place" do
+ before do
+ allow(suse_connect).to
receive(:list_installer_updates).and_raise(Timeout::Error)
+ end
+
+ it "does not catch the error" do
+ expect { subject.get_updates_list }.to raise_error(Timeout::Error)
+ end
+ end
end
describe "#synchronize_products" do