Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package autoyast2 for openSUSE:Factory checked in at 2023-05-24 20:22:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/autoyast2 (Old) and /work/SRC/openSUSE:Factory/.autoyast2.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "autoyast2" Wed May 24 20:22:13 2023 rev:334 rq:1088683 version:4.6.2 Changes: -------- --- /work/SRC/openSUSE:Factory/autoyast2/autoyast2.changes 2023-04-13 14:10:32.044223032 +0200 +++ /work/SRC/openSUSE:Factory/.autoyast2.new.1533/autoyast2.changes 2023-05-24 20:22:24.932198541 +0200 @@ -1,0 +2,7 @@ +Tue May 23 12:31:41 UTC 2023 - Ladislav Slezák <lsle...@suse.com> + +- Properly install the selected products, do not lose them after + resetting the package manager internally (bsc#1202234) +- 4.6.2 + +------------------------------------------------------------------- Old: ---- autoyast2-4.6.1.tar.bz2 New: ---- autoyast2-4.6.2.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ autoyast2.spec ++++++ --- /var/tmp/diff_new_pack.7MZOOH/_old 2023-05-24 20:22:28.892222153 +0200 +++ /var/tmp/diff_new_pack.7MZOOH/_new 2023-05-24 20:22:28.900222201 +0200 @@ -22,7 +22,7 @@ %endif Name: autoyast2 -Version: 4.6.1 +Version: 4.6.2 Release: 0 Summary: YaST2 - Automated Installation License: GPL-2.0-only ++++++ autoyast2-4.6.1.tar.bz2 -> autoyast2-4.6.2.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoyast2-4.6.1/package/autoyast2.changes new/autoyast2-4.6.2/package/autoyast2.changes --- old/autoyast2-4.6.1/package/autoyast2.changes 2023-04-12 16:24:00.000000000 +0200 +++ new/autoyast2-4.6.2/package/autoyast2.changes 2023-05-23 16:17:00.000000000 +0200 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Tue May 23 12:31:41 UTC 2023 - Ladislav Slezák <lsle...@suse.com> + +- Properly install the selected products, do not lose them after + resetting the package manager internally (bsc#1202234) +- 4.6.2 + +------------------------------------------------------------------- Wed Apr 12 13:40:10 UTC 2023 - Ladislav Slezák <lsle...@suse.com> - Rebuild the RPM database during upgrade (--rebuilddb) (bsc#1209565) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoyast2-4.6.1/package/autoyast2.spec new/autoyast2-4.6.2/package/autoyast2.spec --- old/autoyast2-4.6.1/package/autoyast2.spec 2023-04-12 16:24:00.000000000 +0200 +++ new/autoyast2-4.6.2/package/autoyast2.spec 2023-05-23 16:17:00.000000000 +0200 @@ -22,7 +22,7 @@ %endif Name: autoyast2 -Version: 4.6.1 +Version: 4.6.2 Release: 0 Summary: YaST2 - Automated Installation License: GPL-2.0-only diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoyast2-4.6.1/src/modules/AutoinstSoftware.rb new/autoyast2-4.6.2/src/modules/AutoinstSoftware.rb --- old/autoyast2-4.6.1/src/modules/AutoinstSoftware.rb 2023-04-12 16:24:00.000000000 +0200 +++ new/autoyast2-4.6.2/src/modules/AutoinstSoftware.rb 2023-05-23 16:17:00.000000000 +0200 @@ -324,15 +324,19 @@ ok = true Packages.Init(true) - selected_base_products = Product.FindBaseProducts.map { |p| p["name"] } + + # products selected by YaST (not by dependencies) + selected_products = Y2Packager::Resolvable.find(kind: :product, + status: :selected, transact_by: :app_high).map(&:name) + log.info("Products selected by YaST: #{selected_products.inspect}") + # Resetting package selection of previous runs. This is needed # because it could be that additional repositories # are available meanwhile. (bnc#979691) Pkg.PkgApplReset - # Select base product again which has been reset by the previous call. - # (bsc#1143106) - selected_base_products.each { |name| Pkg.ResolvableInstall(name, :product) } + # reselect the products which have been reset by the previous call + selected_products.each { |name| Pkg.ResolvableInstall(name, :product) } sw_settings = Profile.current.fetch("software", {}) Pkg.SetSolverFlags( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoyast2-4.6.1/test/AutoinstSoftware_test.rb new/autoyast2-4.6.2/test/AutoinstSoftware_test.rb --- old/autoyast2-4.6.1/test/AutoinstSoftware_test.rb 2023-04-12 16:24:00.000000000 +0200 +++ new/autoyast2-4.6.2/test/AutoinstSoftware_test.rb 2023-05-23 16:17:00.000000000 +0200 @@ -182,7 +182,7 @@ end describe "#Write" do - let(:base_product) { { "name" => "Leap" } } + let(:products) { [Y2Packager::Resolvable.new(name: "Leap")] } let(:selected_product) do instance_double(Y2Packager::Product, select: nil) end @@ -209,7 +209,7 @@ before do allow(Yast::Packages).to receive(:Init) - allow(Yast::Product).to receive(:FindBaseProducts).and_return([base_product]) + allow(Y2Packager::Resolvable).to receive(:find).and_return(products) allow(Yast::Pkg).to receive(:PkgApplReset) allow(Yast::Pkg).to receive(:PkgSolve).and_return(solver_result) allow(Y2Storage::StorageManager).to receive(:instance).and_return(storage_manager)