Hello community, here is the log from the commit of package autoyast2 for openSUSE:Factory checked in at 2019-10-27 13:36:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/autoyast2 (Old) and /work/SRC/openSUSE:Factory/.autoyast2.new.2990 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "autoyast2" Sun Oct 27 13:36:00 2019 rev:265 rq:742865 version:4.2.13 Changes: -------- --- /work/SRC/openSUSE:Factory/autoyast2/autoyast2.changes 2019-10-21 12:26:37.895840369 +0200 +++ /work/SRC/openSUSE:Factory/.autoyast2.new.2990/autoyast2.changes 2019-10-27 13:36:02.400892621 +0100 @@ -1,0 +2,8 @@ +Fri Oct 25 11:55:01 UTC 2019 - Ladislav Slezák <[email protected]> + +- Do not crash when using the online medium without the + registration section in the AY XML profile, display an error + message with some hints (bsc#1154988) +- 4.2.13 + +------------------------------------------------------------------- Old: ---- autoyast2-4.2.12.tar.bz2 New: ---- autoyast2-4.2.13.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ autoyast2.spec ++++++ --- /var/tmp/diff_new_pack.DYPOlQ/_old 2019-10-27 13:36:03.004893391 +0100 +++ /var/tmp/diff_new_pack.DYPOlQ/_new 2019-10-27 13:36:03.004893391 +0100 @@ -22,7 +22,7 @@ %endif Name: autoyast2 -Version: 4.2.12 +Version: 4.2.13 Release: 0 Summary: YaST2 - Automated Installation License: GPL-2.0-only ++++++ autoyast2-4.2.12.tar.bz2 -> autoyast2-4.2.13.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoyast2-4.2.12/package/autoyast2.changes new/autoyast2-4.2.13/package/autoyast2.changes --- old/autoyast2-4.2.12/package/autoyast2.changes 2019-10-18 17:11:04.000000000 +0200 +++ new/autoyast2-4.2.13/package/autoyast2.changes 2019-10-25 15:06:45.000000000 +0200 @@ -1,4 +1,12 @@ ------------------------------------------------------------------- +Fri Oct 25 11:55:01 UTC 2019 - Ladislav Slezák <[email protected]> + +- Do not crash when using the online medium without the + registration section in the AY XML profile, display an error + message with some hints (bsc#1154988) +- 4.2.13 + +------------------------------------------------------------------- Fri Oct 18 14:03:27 UTC 2019 - Ladislav Slezák <[email protected]> - AutoYaST support for the OnlineOnly installation medium diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoyast2-4.2.12/package/autoyast2.spec new/autoyast2-4.2.13/package/autoyast2.spec --- old/autoyast2-4.2.12/package/autoyast2.spec 2019-10-18 17:11:04.000000000 +0200 +++ new/autoyast2-4.2.13/package/autoyast2.spec 2019-10-25 15:06:45.000000000 +0200 @@ -22,7 +22,7 @@ %endif Name: autoyast2 -Version: 4.2.12 +Version: 4.2.13 Release: 0 Summary: YaST2 - Automated Installation License: GPL-2.0-only diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoyast2-4.2.12/src/clients/inst_autoinit.rb new/autoyast2-4.2.13/src/clients/inst_autoinit.rb --- old/autoyast2-4.2.12/src/clients/inst_autoinit.rb 2019-10-18 17:11:04.000000000 +0200 +++ new/autoyast2-4.2.13/src/clients/inst_autoinit.rb 2019-10-25 15:06:45.000000000 +0200 @@ -96,8 +96,21 @@ # register the system earlier because the medium does not contain any # repositories, we need the repositories from the registration server # TODO: maybe we will need it also in the autoupgrade case... - if Y2Packager::MediumType.online? && !Mode.autoupgrade - suse_register + if Y2Packager::MediumType.online? + # check that the registration section is defined and registration is enabled + reg_section = Yast::Profile.current.fetch(REGISTER_SECTION, {}) + reg_enabled = reg_section["do_registration"] + + if !reg_enabled + msg = _("Registration is mandatory when using the online " \ + "installation medium. Enable registration in " \ + "the AutoYaST profile.") + Popup.LongError(msg) # No timeout because we are stopping the installation/upgrade. + + return :abort + end + + suse_register if !Mode.autoupgrade end if !(Mode.autoupgrade && AutoinstConfig.ProfileInRootPart)
