Hello community, here is the log from the commit of package autoyast2 for openSUSE:Factory checked in at 2016-05-23 16:37:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/autoyast2 (Old) and /work/SRC/openSUSE:Factory/.autoyast2.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "autoyast2" Changes: -------- --- /work/SRC/openSUSE:Factory/autoyast2/autoyast2.changes 2016-05-08 10:40:56.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.autoyast2.new/autoyast2.changes 2016-05-23 16:37:26.000000000 +0200 @@ -1,0 +2,16 @@ +Thu May 19 14:46:11 CEST 2016 - [email protected] + +- Unsupported sections will be now reported in first installation + stage. Reducing log level to warning. + (Additional patch for bnc#955878) +- 3.1.128 + +------------------------------------------------------------------- +Wed May 18 12:35:45 CEST 2016 - [email protected] + +- Resetting package selection of previous runs. This is needed + because it could be that additional repositories are available + meanwhile. (bnc#979691) +- 3.1.127 + +------------------------------------------------------------------- Old: ---- autoyast2-3.1.126.tar.bz2 New: ---- autoyast2-3.1.128.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ autoyast2.spec ++++++ --- /var/tmp/diff_new_pack.2uwqEF/_old 2016-05-23 16:37:27.000000000 +0200 +++ /var/tmp/diff_new_pack.2uwqEF/_new 2016-05-23 16:37:27.000000000 +0200 @@ -17,7 +17,7 @@ Name: autoyast2 -Version: 3.1.126 +Version: 3.1.128 Release: 0 BuildRoot: %{_tmppath}/%{name}-%{version}-build ++++++ autoyast2-3.1.126.tar.bz2 -> autoyast2-3.1.128.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoyast2-3.1.126/package/autoyast2.changes new/autoyast2-3.1.128/package/autoyast2.changes --- old/autoyast2-3.1.126/package/autoyast2.changes 2016-05-03 13:32:27.000000000 +0200 +++ new/autoyast2-3.1.128/package/autoyast2.changes 2016-05-20 11:01:09.000000000 +0200 @@ -1,4 +1,20 @@ ------------------------------------------------------------------- +Thu May 19 14:46:11 CEST 2016 - [email protected] + +- Unsupported sections will be now reported in first installation + stage. Reducing log level to warning. + (Additional patch for bnc#955878) +- 3.1.128 + +------------------------------------------------------------------- +Wed May 18 12:35:45 CEST 2016 - [email protected] + +- Resetting package selection of previous runs. This is needed + because it could be that additional repositories are available + meanwhile. (bnc#979691) +- 3.1.127 + +------------------------------------------------------------------- Mon May 2 15:43:36 CEST 2016 - [email protected] - Media-based AutoUpgrade case for feature: No Recommends in diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoyast2-3.1.126/package/autoyast2.spec new/autoyast2-3.1.128/package/autoyast2.spec --- old/autoyast2-3.1.126/package/autoyast2.spec 2016-05-03 13:32:27.000000000 +0200 +++ new/autoyast2-3.1.128/package/autoyast2.spec 2016-05-20 11:01:09.000000000 +0200 @@ -17,7 +17,7 @@ Name: autoyast2 -Version: 3.1.126 +Version: 3.1.128 Release: 0 BuildRoot: %{_tmppath}/%{name}-%{version}-build diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoyast2-3.1.126/src/clients/inst_autoconfigure.rb new/autoyast2-3.1.128/src/clients/inst_autoconfigure.rb --- old/autoyast2-3.1.126/src/clients/inst_autoconfigure.rb 2016-05-03 13:32:27.000000000 +0200 +++ new/autoyast2-3.1.128/src/clients/inst_autoconfigure.rb 2016-05-20 11:01:09.000000000 +0200 @@ -81,34 +81,23 @@ Builtins.y2debug("Module map: %1", Y2ModuleConfig.ModuleMap) Builtins.y2debug("Current profile: %1", Profile.current) - unsupported_sections = Y2ModuleConfig.unsupported_profile_sections - if unsupported_sections.any? - log.error "Could not process these unsupported profile sections: #{unsupported_sections}" - Report.LongError( - # TRANSLATORS: Error message, %s is replaced by newline-separated - # list of unsupported sections of the profile - # Do not translate words in brackets - _( - "These sections of AutoYaST profile are not supported anymore:\n\n%s\n\n" \ - "Please, use, e.g., <scripts/> or <files/> to change the configuration." - ) % unsupported_sections.map{|section| "<#{section}/>"}.join("\n") - ) - end - # Report only those that are 'not unsupported', these were already reported + # Unsupported sections have already been reported in the first stage + unsupported_sections = Y2ModuleConfig.unsupported_profile_sections unknown_sections = Y2ModuleConfig.unhandled_profile_sections - unsupported_sections if unknown_sections.any? log.error "Could not process these unknown profile sections: #{unknown_sections}" - Report.LongError( + Report.LongWarning( # TRANSLATORS: Error message, %s is replaced by newline-separated # list of unknown sections of the profile # Do not translate words in brackets _( - "These sections of AutoYaST profile cannot be processed on this system:\n\n%s\n\n" \ + "These sections of AutoYaST profile cannot be processed on this " \ + "system:<br><br>%s<br><br>" \ "Maybe they were misspelled or your profile does not contain " \ - "all the needed YaST packages in <software/> section." + "all the needed YaST packages in <software/> section." ) % - unknown_sections.map{|section| "<#{section}/>"}.join("\n") + unknown_sections.map{|section| "<#{section}/>"}.join("<br>") ) end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoyast2-3.1.126/src/clients/inst_autoinit.rb new/autoyast2-3.1.128/src/clients/inst_autoinit.rb --- old/autoyast2-3.1.126/src/clients/inst_autoinit.rb 2016-05-03 13:32:27.000000000 +0200 +++ new/autoyast2-3.1.128/src/clients/inst_autoinit.rb 2016-05-20 11:01:09.000000000 +0200 @@ -9,6 +9,7 @@ # module Yast class InstAutoinitClient < Client + include Yast::Logger def main Yast.import "UI" @@ -23,10 +24,10 @@ Yast.import "Progress" Yast.import "Report" Yast.import "Profile" - # import "Arch"; Yast.import "Call" Yast.import "Console" Yast.import "Mode" + Yast.import "Y2ModuleConfig" Yast.import "Popup" @@ -137,6 +138,28 @@ :next end + private + + # Checking profile for unsupported sections. + def check_unsupported_profile_sections + unsupported_sections = Y2ModuleConfig.unsupported_profile_sections + if unsupported_sections.any? + log.error "Could not process these unsupported profile" \ + "sections: #{unsupported_sections}" + Report.LongWarning( + # TRANSLATORS: Error message, %s is replaced by newline-separated + # list of unsupported sections of the profile + # Do not translate words in brackets + _( + "These sections of AutoYaST profile are not supported " \ + "anymore:<br><br>%s<br><br>" \ + "Please, use, e.g., <scripts/> or <files/>" \ + " to change the configuration." + ) % unsupported_sections.map{|section| "<#{section}/>"}.join("<br>") + ) + end + end + def processProfile Progress.NextStage Builtins.y2milestone("Starting processProfile msg:%1",AutoinstConfig.message) @@ -196,6 +219,8 @@ Builtins.y2debug("Autoinstall control file %1", Profile.current) + # Checking profile for unsupported sections. + check_unsupported_profile_sections Progress.NextStage Progress.Title(_("Initial Configuration")) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoyast2-3.1.126/src/modules/AutoinstSoftware.rb new/autoyast2-3.1.128/src/modules/AutoinstSoftware.rb --- old/autoyast2-3.1.126/src/modules/AutoinstSoftware.rb 2016-05-03 13:32:27.000000000 +0200 +++ new/autoyast2-3.1.128/src/modules/AutoinstSoftware.rb 2016-05-20 11:01:09.000000000 +0200 @@ -833,6 +833,11 @@ ok = true Packages.Init(true) + # Resetting package selection of previous runs. This is needed + # because it could be that additional repositories + # are available meanwhile. (bnc#979691) + Pkg.PkgApplReset + sw_settings = Profile.current.fetch("software",{}) Pkg.SetSolverFlags({ "ignoreAlreadyRecommended" => Mode.normal, "onlyRequires" => !sw_settings.fetch("install_recommended",true) })
