Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package autoyast2 for openSUSE:Factory checked in at 2022-02-09 20:38:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/autoyast2 (Old) and /work/SRC/openSUSE:Factory/.autoyast2.new.1898 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "autoyast2" Wed Feb 9 20:38:36 2022 rev:316 rq:952218 version:4.4.29 Changes: -------- --- /work/SRC/openSUSE:Factory/autoyast2/autoyast2.changes 2022-01-27 23:17:10.538891634 +0100 +++ /work/SRC/openSUSE:Factory/.autoyast2.new.1898/autoyast2.changes 2022-02-09 20:39:13.818380314 +0100 @@ -1,0 +2,8 @@ +Mon Feb 7 14:19:37 UTC 2022 - Imobach Gonzalez Sosa <igonzalezs...@suse.com> + +- Fix the profile update when using an <ask/> element + (boo#1195630). +- Run the network client when listed in the semi-automatic section. +- 4.4.29 + +------------------------------------------------------------------- Old: ---- autoyast2-4.4.28.tar.bz2 New: ---- autoyast2-4.4.29.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ autoyast2.spec ++++++ --- /var/tmp/diff_new_pack.X6wGiQ/_old 2022-02-09 20:39:14.538382036 +0100 +++ /var/tmp/diff_new_pack.X6wGiQ/_new 2022-02-09 20:39:14.550382065 +0100 @@ -22,7 +22,7 @@ %endif Name: autoyast2 -Version: 4.4.28 +Version: 4.4.29 Release: 0 Summary: YaST2 - Automated Installation License: GPL-2.0-only @@ -44,13 +44,13 @@ # Replace PackageSystem with Package BuildRequires: yast2 >= 4.4.38 # FileSystems.read_default_subvol_from_target +BuildRequires: yast2-xml BuildRequires: yast2-services-manager BuildRequires: yast2-transfer -BuildRequires: yast2-xml # ProductSpec API +BuildRequires: yast2-packager >= 4.4.13 BuildRequires: yast2-country BuildRequires: yast2-network >= 3.1.145 -BuildRequires: yast2-packager >= 4.4.13 BuildRequires: yast2-slp BuildRequires: yast2-update >= 3.3.0 # Required for test suite testing one time sync @@ -79,8 +79,8 @@ Requires: yast2-transfer >= 2.21.0 Requires: yast2-xml # New API for Y2Storage::PackageHandler and storage features -Requires: yast2-ruby-bindings >= 1.0.0 Requires: yast2-storage-ng >= 4.2.95 +Requires: yast2-ruby-bindings >= 1.0.0 Conflicts: yast2-installation < 3.1.166 ++++++ autoyast2-4.4.28.tar.bz2 -> autoyast2-4.4.29.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoyast2-4.4.28/package/autoyast2.changes new/autoyast2-4.4.29/package/autoyast2.changes --- old/autoyast2-4.4.28/package/autoyast2.changes 2022-01-26 08:03:35.000000000 +0100 +++ new/autoyast2-4.4.29/package/autoyast2.changes 2022-02-07 17:26:06.000000000 +0100 @@ -1,4 +1,12 @@ ------------------------------------------------------------------- +Mon Feb 7 14:19:37 UTC 2022 - Imobach Gonzalez Sosa <igonzalezs...@suse.com> + +- Fix the profile update when using an <ask/> element + (boo#1195630). +- Run the network client when listed in the semi-automatic section. +- 4.4.29 + +------------------------------------------------------------------- Tue Jan 25 16:11:43 UTC 2022 - Imobach Gonzalez Sosa <igonzalezs...@suse.com> - Use Package module instead of PackageSystem (bsc#1194886). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoyast2-4.4.28/package/autoyast2.spec new/autoyast2-4.4.29/package/autoyast2.spec --- old/autoyast2-4.4.28/package/autoyast2.spec 2022-01-26 08:03:35.000000000 +0100 +++ new/autoyast2-4.4.29/package/autoyast2.spec 2022-02-07 17:26:06.000000000 +0100 @@ -22,7 +22,7 @@ %endif Name: autoyast2 -Version: 4.4.28 +Version: 4.4.29 Release: 0 Summary: YaST2 - Automated Installation License: GPL-2.0-only diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoyast2-4.4.28/src/lib/autoinstall/autosetup_helpers.rb new/autoyast2-4.4.29/src/lib/autoinstall/autosetup_helpers.rb --- old/autoyast2-4.4.28/src/lib/autoinstall/autosetup_helpers.rb 2022-01-26 08:03:35.000000000 +0100 +++ new/autoyast2-4.4.29/src/lib/autoinstall/autosetup_helpers.rb 2022-02-07 17:26:06.000000000 +0100 @@ -144,7 +144,9 @@ if semi_auto?("networking") log.info("Networking manual setup before proposal") - Yast::WFM.CallFunction("inst_lan", ["enable_next" => true]) + Yast::WFM.CallFunction( + "inst_lan", ["enable_next" => true, "skip_detection" => true] + ) @network_before_proposal = true end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoyast2-4.4.28/src/modules/Profile.rb new/autoyast2-4.4.29/src/modules/Profile.rb --- old/autoyast2-4.4.28/src/modules/Profile.rb 2022-01-26 08:03:35.000000000 +0100 +++ new/autoyast2-4.4.29/src/modules/Profile.rb 2022-02-07 17:26:06.000000000 +0100 @@ -671,7 +671,6 @@ # @param profile [Hash] Initial profile # @return [Hash] Modified profile def setElementByList(path, value, profile) - profile = Yast::ProfileHash.new(profile) merge_element_by_list(path, value, profile) end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoyast2-4.4.28/test/lib/autoinstall/ask/runner_test.rb new/autoyast2-4.4.29/test/lib/autoinstall/ask/runner_test.rb --- old/autoyast2-4.4.28/test/lib/autoinstall/ask/runner_test.rb 2022-01-26 08:03:35.000000000 +0100 +++ new/autoyast2-4.4.29/test/lib/autoinstall/ask/runner_test.rb 2022-02-07 17:26:06.000000000 +0100 @@ -31,8 +31,9 @@ let(:profile) do Yast::ProfileHash.new( - "general" => { "ask-list" => ask_list }, - "users" => [{ "username" => "root", "user_password" => "ask" }] + "general" => { "ask-list" => ask_list }, + "users" => [{ "username" => "root", "user_password" => "ask" }], + "networking" => { "dns" => { "hostname" => "localhost" } } ) end @@ -100,6 +101,20 @@ runner.run expect(profile["users"][0]).to eq("username" => "root", "user_password" => "secret") end + + context "and the profile is deeper than 1 level" do + let(:question1) do + Y2Autoinstall::Ask::Question.new("Hostname").tap do |question| + question.paths << "networking,dns,hostname" + question.value = "example" + end + end + + it "updates the profile with the value from the question" do + runner.run + expect(profile["networking"]["dns"]).to eq("hostname" => "example") + end + end end context "when a script is set" do diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoyast2-4.4.28/test/lib/autosetup_helpers_test.rb new/autoyast2-4.4.29/test/lib/autosetup_helpers_test.rb --- old/autoyast2-4.4.28/test/lib/autosetup_helpers_test.rb 2022-01-26 08:03:35.000000000 +0100 +++ new/autoyast2-4.4.29/test/lib/autosetup_helpers_test.rb 2022-02-07 17:26:06.000000000 +0100 @@ -145,6 +145,7 @@ let(:profile_content) do Yast::ProfileHash.new("general" => { "semi-automatic" => ["scc"] }) end + it "shows registration screen mask and returns true" do # Showing registration screen mask expect(Yast::WFM).to receive(:CallFunction).with("inst_scc", @@ -350,7 +351,8 @@ let(:networking_section) { { "general" => { "semi-automatic" => ["networking"] } } } it "runs the network configuration client" do - expect(Yast::WFM).to receive(:CallFunction).with("inst_lan", anything) + expect(Yast::WFM).to receive(:CallFunction) + .with("inst_lan", ["enable_next" => true, "skip_detection" => true]) client.autosetup_network end