Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package yast2 for openSUSE:Factory checked in at 2022-05-25 20:34:03 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2 (Old) and /work/SRC/openSUSE:Factory/.yast2.new.2254 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2" Wed May 25 20:34:03 2022 rev:532 rq:978975 version:4.5.4 Changes: -------- --- /work/SRC/openSUSE:Factory/yast2/yast2.changes 2022-05-09 18:43:54.696193971 +0200 +++ /work/SRC/openSUSE:Factory/.yast2.new.2254/yast2.changes 2022-05-25 20:34:11.172196159 +0200 @@ -1,0 +2,7 @@ +Mon May 23 15:10:38 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz> + +- Added experimental infrastructure for managing system in + a chroot (bsc#1199840) +- 4.5.4 + +------------------------------------------------------------------- Old: ---- yast2-4.5.3.tar.bz2 New: ---- yast2-4.5.4.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2.spec ++++++ --- /var/tmp/diff_new_pack.NzK0mE/_old 2022-05-25 20:34:11.796197030 +0200 +++ /var/tmp/diff_new_pack.NzK0mE/_new 2022-05-25 20:34:11.800197036 +0200 @@ -17,7 +17,7 @@ Name: yast2 -Version: 4.5.3 +Version: 4.5.4 Release: 0 Summary: YaST2 Main Package ++++++ yast2-4.5.3.tar.bz2 -> yast2-4.5.4.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-4.5.3/library/control/src/modules/Installation.rb new/yast2-4.5.4/library/control/src/modules/Installation.rb --- old/yast2-4.5.3/library/control/src/modules/Installation.rb 2022-05-06 17:35:05.000000000 +0200 +++ new/yast2-4.5.4/library/control/src/modules/Installation.rb 2022-05-24 15:21:05.000000000 +0200 @@ -212,6 +212,9 @@ elsif Stage.initial @destdir = "/mnt" @scr_destdir = "/mnt" + elsif WFM.scr_chrooted? + @destdir = WFM.scr_root + @scr_destdir = WFM.scr_root end nil diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-4.5.3/library/control/test/installation_test.rb new/yast2-4.5.4/library/control/test/installation_test.rb --- old/yast2-4.5.3/library/control/test/installation_test.rb 2022-05-06 17:35:05.000000000 +0200 +++ new/yast2-4.5.4/library/control/test/installation_test.rb 2022-05-24 15:21:05.000000000 +0200 @@ -23,4 +23,41 @@ subject.sourcedir end end + + # test the module constructor + describe "#Installation (module constructor)" do + after(:each) do + # reset the value after each run + subject.destdir = "/" + end + + context "in a running system" do + before do + # mock a running system + allow(Yast::Stage).to receive(:cont).and_return(false) + allow(Yast::Stage).to receive(:initial).and_return(false) + + allow(Yast::WFM).to receive(:scr_root).and_return(scr_chroot) + allow(Yast::WFM).to receive(:scr_chrooted?).and_return(scr_chroot != "/") + end + + context "SCR runs in a chroot" do + let(:scr_chroot) { "/mnt" } + + it "sets the 'destdir' to the chroot" do + subject.Installation + expect(subject.destdir).to eq(scr_chroot) + end + end + + context "SCR runs in the root" do + let(:scr_chroot) { "/" } + + it "leaves the 'destdir' at the default root" do + subject.Installation + expect(subject.destdir).to eq(scr_chroot) + end + end + end + end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-4.5.3/package/yast2.changes new/yast2-4.5.4/package/yast2.changes --- old/yast2-4.5.3/package/yast2.changes 2022-05-06 17:35:05.000000000 +0200 +++ new/yast2-4.5.4/package/yast2.changes 2022-05-24 15:21:05.000000000 +0200 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Mon May 23 15:10:38 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz> + +- Added experimental infrastructure for managing system in + a chroot (bsc#1199840) +- 4.5.4 + +------------------------------------------------------------------- Fri May 6 15:23:06 UTC 2022 - Josef Reidinger <jreidin...@suse.com> - Avoid build failures when packager is not available (related to diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-4.5.3/package/yast2.spec new/yast2-4.5.4/package/yast2.spec --- old/yast2-4.5.3/package/yast2.spec 2022-05-06 17:35:05.000000000 +0200 +++ new/yast2-4.5.4/package/yast2.spec 2022-05-24 15:21:05.000000000 +0200 @@ -17,7 +17,7 @@ Name: yast2 -Version: 4.5.3 +Version: 4.5.4 Release: 0 Summary: YaST2 Main Package