Hello community, here is the log from the commit of package yast2-registration for openSUSE:Factory checked in at 2019-10-16 09:10:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2-registration (Old) and /work/SRC/openSUSE:Factory/.yast2-registration.new.2352 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-registration" Wed Oct 16 09:10:07 2019 rev:41 rq:737535 version:4.2.12 Changes: -------- --- /work/SRC/openSUSE:Factory/yast2-registration/yast2-registration.changes 2019-10-03 14:07:34.920390076 +0200 +++ /work/SRC/openSUSE:Factory/.yast2-registration.new.2352/yast2-registration.changes 2019-10-16 09:10:07.648265156 +0200 @@ -1,0 +2,13 @@ +Thu Oct 10 13:39:18 UTC 2019 - Josef Reidinger <jreidin...@suse.com> + +- fix crash of autoyast config dialog (bsc#1152913) +- 4.2.12 + +------------------------------------------------------------------- +Tue Oct 8 10:29:07 UTC 2019 - Ladislav Slezák <lsle...@suse.cz> + +- Detect the installation medium type only during installation, + it crashes in an installed system (bsc#1152694) +- 4.2.11 + +------------------------------------------------------------------- Old: ---- yast2-registration-4.2.10.tar.bz2 New: ---- yast2-registration-4.2.12.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-registration.spec ++++++ --- /var/tmp/diff_new_pack.HBXHbh/_old 2019-10-16 09:10:08.092264012 +0200 +++ /var/tmp/diff_new_pack.HBXHbh/_new 2019-10-16 09:10:08.092264012 +0200 @@ -17,7 +17,7 @@ Name: yast2-registration -Version: 4.2.10 +Version: 4.2.12 Release: 0 Summary: YaST2 - Registration Module License: GPL-2.0-only ++++++ yast2-registration-4.2.10.tar.bz2 -> yast2-registration-4.2.12.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-registration-4.2.10/package/yast2-registration.changes new/yast2-registration-4.2.12/package/yast2-registration.changes --- old/yast2-registration-4.2.10/package/yast2-registration.changes 2019-10-03 12:04:48.000000000 +0200 +++ new/yast2-registration-4.2.12/package/yast2-registration.changes 2019-10-11 16:59:42.000000000 +0200 @@ -1,10 +1,23 @@ ------------------------------------------------------------------- +Thu Oct 10 13:39:18 UTC 2019 - Josef Reidinger <jreidin...@suse.com> + +- fix crash of autoyast config dialog (bsc#1152913) +- 4.2.12 + +------------------------------------------------------------------- +Tue Oct 8 10:29:07 UTC 2019 - Ladislav Slezák <lsle...@suse.cz> + +- Detect the installation medium type only during installation, + it crashes in an installed system (bsc#1152694) +- 4.2.11 + +------------------------------------------------------------------- Thu Oct 3 09:41:19 UTC 2019 - Michal Filka <mfi...@suse.com> - bnc#1140474 - changed wording when informing the user about missing migration target -- 4.2.10 +- 4.2.10 ------------------------------------------------------------------- Fri Sep 27 11:12:02 UTC 2019 - jsr...@suse.cz diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-registration-4.2.10/package/yast2-registration.spec new/yast2-registration-4.2.12/package/yast2-registration.spec --- old/yast2-registration-4.2.10/package/yast2-registration.spec 2019-10-03 12:04:48.000000000 +0200 +++ new/yast2-registration-4.2.12/package/yast2-registration.spec 2019-10-11 16:59:42.000000000 +0200 @@ -17,7 +17,7 @@ Name: yast2-registration -Version: 4.2.10 +Version: 4.2.12 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.10/src/clients/inst_scc.rb new/yast2-registration-4.2.12/src/clients/inst_scc.rb --- old/yast2-registration-4.2.10/src/clients/inst_scc.rb 2019-10-03 12:04:48.000000000 +0200 +++ new/yast2-registration-4.2.12/src/clients/inst_scc.rb 2019-10-11 16:59:42.000000000 +0200 @@ -11,7 +11,6 @@ # # ------------------------------------------------------------------------------ # - require "registration/clients/inst_scc" Yast::InstSccClient.new.main diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-registration-4.2.10/src/lib/registration/sw_mgmt.rb new/yast2-registration-4.2.12/src/lib/registration/sw_mgmt.rb --- old/yast2-registration-4.2.10/src/lib/registration/sw_mgmt.rb 2019-10-03 12:04:48.000000000 +0200 +++ new/yast2-registration-4.2.12/src/lib/registration/sw_mgmt.rb 2019-10-11 16:59:42.000000000 +0200 @@ -170,7 +170,7 @@ # just for debugging: return FAKE_BASE_PRODUCT if ENV["FAKE_BASE_PRODUCT"] - return online_base_product if Y2Packager::MediumType.online? + return online_base_product if Stage.initial && Y2Packager::MediumType.online? # use the selected product if a product has been already selected selected = product_selected? if Stage.initial diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-registration-4.2.10/src/lib/registration/ui/autoyast_addon_dialog.rb new/yast2-registration-4.2.12/src/lib/registration/ui/autoyast_addon_dialog.rb --- old/yast2-registration-4.2.10/src/lib/registration/ui/autoyast_addon_dialog.rb 2019-10-03 12:04:48.000000000 +0200 +++ new/yast2-registration-4.2.12/src/lib/registration/ui/autoyast_addon_dialog.rb 2019-10-11 16:59:42.000000000 +0200 @@ -92,6 +92,8 @@ # the main event loop # @return [Symbol] the user input def handle_dialog + ret = nil + loop do refresh_buttons diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-registration-4.2.10/test/registration/ui/autoyast_addon_dialog_test.rb new/yast2-registration-4.2.12/test/registration/ui/autoyast_addon_dialog_test.rb --- old/yast2-registration-4.2.10/test/registration/ui/autoyast_addon_dialog_test.rb 1970-01-01 01:00:00.000000000 +0100 +++ new/yast2-registration-4.2.12/test/registration/ui/autoyast_addon_dialog_test.rb 2019-10-11 16:59:42.000000000 +0200 @@ -0,0 +1,41 @@ +#!/usr/bin/env rspec +# ------------------------------------------------------------------------------ +# Copyright (c) 2019 SUSE LLC, All Rights Reserved. +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of version 2 of the GNU General Public License as published by the +# Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# ------------------------------------------------------------------------------ + +require_relative "../../spec_helper" +require "registration/ui/autoyast_addon_dialog" + +describe Registration::UI::AutoyastAddonDialog do + subject(:dialog) { described_class.new(addons) } + + let(:addons) { [addon] } + + let(:addon) do + { + "name" => "free_cool_in_addon", + "version" => "666", + "arch" => "s390x", + "release_type" => nil, + "reg_code" => "hell_driven_delevopment" + } + end + + describe "#run" do + before do + allow(Yast::UI).to receive(:UserInput).and_return(:next) + end + + it "does not crash" do + expect { dialog.run }.to_not raise_error + end + end +end