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-07-29 16:47:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2 (Old) and /work/SRC/openSUSE:Factory/.yast2.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2" Fri Jul 29 16:47:05 2022 rev:535 rq:991529 version:4.5.10 Changes: -------- --- /work/SRC/openSUSE:Factory/yast2/yast2.changes 2022-06-29 16:02:00.400674490 +0200 +++ /work/SRC/openSUSE:Factory/.yast2.new.1533/yast2.changes 2022-07-29 16:47:15.910546998 +0200 @@ -1,0 +2,29 @@ +Thu Jul 28 09:40:31 UTC 2022 - David Diaz <dgonza...@suse.com> + +- Do not ask for user input while checking file conflicts if the + delayed progress popup is not shown (bsc#1201924) +- 4.5.10 + +------------------------------------------------------------------- +Thu Jul 28 07:57:14 UTC 2022 - Michal Filka <mfi...@suse.com> + +- bsc#1200016 + - added a method for finding a package according to a pattern +- 4.5.9 + +------------------------------------------------------------------- +Wed Jul 27 13:41:45 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz> + +- Fixed libzypp initialization, in the YaST container read the + configured repositories from the host (related to bsc#1199840) +- 4.5.8 + +------------------------------------------------------------------- +Fri Jul 22 12:13:13 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz> + +- Text mode control center: always display the YaST modules + installed in the system root (when running in a container + display the modules installed in the container) (bsc#1199840) +- 4.5.7 + +------------------------------------------------------------------- Old: ---- yast2-4.5.6.tar.bz2 New: ---- yast2-4.5.10.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2.spec ++++++ --- /var/tmp/diff_new_pack.j1cYmJ/_old 2022-07-29 16:47:16.654549067 +0200 +++ /var/tmp/diff_new_pack.j1cYmJ/_new 2022-07-29 16:47:16.658549078 +0200 @@ -17,7 +17,7 @@ Name: yast2 -Version: 4.5.6 +Version: 4.5.10 Release: 0 Summary: YaST2 Main Package ++++++ yast2-4.5.6.tar.bz2 -> yast2-4.5.10.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-4.5.6/library/desktop/src/clients/menu.rb new/yast2-4.5.10/library/desktop/src/clients/menu.rb --- old/yast2-4.5.6/library/desktop/src/clients/menu.rb 2022-06-28 16:27:17.000000000 +0200 +++ new/yast2-4.5.10/library/desktop/src/clients/menu.rb 2022-07-28 12:32:46.000000000 +0200 @@ -66,6 +66,13 @@ "Hidden" ] + # always load the desktop files from the system root + if WFM.scr_chrooted? + # revert back the chrooting + handle = Yast::WFM.SCROpen("chroot=/:scr", false) + Yast::WFM.SCRSetDefault(handle) + end + Desktop.Read(@Values) @Groups = deep_copy(Desktop.Groups) @Modules = deep_copy(Desktop.Modules) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-4.5.6/library/packages/src/lib/packages/file_conflict_callbacks.rb new/yast2-4.5.10/library/packages/src/lib/packages/file_conflict_callbacks.rb --- old/yast2-4.5.6/library/packages/src/lib/packages/file_conflict_callbacks.rb 2022-06-28 16:27:17.000000000 +0200 +++ new/yast2-4.5.10/library/packages/src/lib/packages/file_conflict_callbacks.rb 2022-07-28 12:32:46.000000000 +0200 @@ -129,12 +129,14 @@ if Yast::Mode.commandline Yast::CommandLine.PrintVerboseNoCR("#{Yast::PackageCallbacksClass::CLEAR_PROGRESS_TEXT}#{progress}%") - else - delayed_progress_popup.progress(progress) + return true end - ui = Yast::UI.PollInput unless Yast::Mode.commandline - log.info "User input in file conflict progress (#{progress}%): #{ui}" if ui + delayed_progress_popup.progress(progress) + return true unless delayed_progress_popup.open? + + ui = Yast::UI.PollInput + log.info "User input in file conflict progress (#{progress}%): #{ui}" ui != :abort && ui != :cancel end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-4.5.6/library/packages/src/modules/Package.rb new/yast2-4.5.10/library/packages/src/modules/Package.rb --- old/yast2-4.5.6/library/packages/src/modules/Package.rb 2022-06-28 16:27:17.000000000 +0200 +++ new/yast2-4.5.10/library/packages/src/modules/Package.rb 2022-07-28 12:32:46.000000000 +0200 @@ -32,6 +32,7 @@ # <a href="../index.html">.../docs/index.html</a>. require "yast" require "forwardable" +require "y2packager/resolvable" Yast.import "Mode" Yast.import "PackageAI" @@ -221,6 +222,25 @@ @removed_packages.clear end + # Tries to find a package according to the pattern + # + # @param pattern [String] a regex pattern to match, no escaping done + # @return list of matching package names + def by_pattern(pattern) + raise ArgumentError, "Missing search pattern" if pattern.nil? || pattern.empty? + + init_packager + + # NOTE: Resolvable.find + # - takes POSIX regexp, later select uses Ruby regexp + # - supports regexps only for dependencies, so we need to filter result + # according to package name + Y2Packager::Resolvable.find({ provides_regexp: "^#{pattern}$" }, [:name]) + .select { |p| p.name =~ /\A#{pattern}\z/ } + .map(&:name) + .uniq + end + # Are all of these packages available? # @param [Array<String>] packages list of packages # @return [Boolean] true if yes (nil = an error occurred) @@ -432,6 +452,7 @@ @last_op_canceled end + publish function: :by_pattern, type: "list <string> (string)" publish function: :Available, type: "boolean (string)" publish function: :Installed, type: "boolean (string)" publish function: :DoInstall, type: "boolean (list <string>)" @@ -458,6 +479,14 @@ private + # Makes sure the package database is initialized. + def init_packager + Pkg.TargetInitialize(Installation.destdir) + Pkg.TargetLoad + Pkg.SourceRestore + Pkg.SourceLoad + end + # If Yast is running in the autoyast configuration mode # no changes will be done on the target system by using # the PackageAI class. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-4.5.6/library/packages/src/modules/PackageSystem.rb new/yast2-4.5.10/library/packages/src/modules/PackageSystem.rb --- old/yast2-4.5.6/library/packages/src/modules/PackageSystem.rb 2022-06-28 16:27:17.000000000 +0200 +++ new/yast2-4.5.10/library/packages/src/modules/PackageSystem.rb 2022-07-28 12:32:46.000000000 +0200 @@ -154,8 +154,8 @@ Builtins.y2debug("toinstall: %1, toremove: %2", toinstall, toremove) return false if !PackageLock.Check - EnsureSourceInit() EnsureTargetInit() + EnsureSourceInit() ok = true Yast.import "Label" @@ -272,9 +272,20 @@ true end + # Install and remove requested packages + # @note The packages are by default installed also with soft dependencies + # (like Recommends or Supplements) + # @param toinstall [Array<String>] the list of package to install (package names) + # @param toremove [Array<String>] the list of package to remove (package names) + # @return [Boolean] `true`` on success, `false` on error def DoInstallAndRemove(toinstall, toremove) - toinstall = deep_copy(toinstall) - toremove = deep_copy(toremove) + return false if !PackageLock.Check + + # the DoInstallAndRemoveInt() call initializes the libzypp internally + # but we need initialized libzypp earlier to change the solver settings + EnsureTargetInit() + EnsureSourceInit() + # remember the current solver flags solver_flags = Pkg.GetSolverFlags @@ -292,6 +303,7 @@ # Is a package available? # @return true if yes (nil = no package source available) def Available(package) + EnsureTargetInit() EnsureSourceInit() # at least one enabled repository present? @@ -362,6 +374,7 @@ # Is a package available? Checks only package name, not list of provides. # @return true if yes (nil = no package source available) def PackageAvailable(package) + EnsureTargetInit() EnsureSourceInit() # at least one enabled repository present? diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-4.5.6/library/packages/test/file_conflict_callbacks_test.rb new/yast2-4.5.10/library/packages/test/file_conflict_callbacks_test.rb --- old/yast2-4.5.6/library/packages/test/file_conflict_callbacks_test.rb 2022-06-28 16:27:17.000000000 +0200 +++ new/yast2-4.5.10/library/packages/test/file_conflict_callbacks_test.rb 2022-07-28 12:32:46.000000000 +0200 @@ -213,22 +213,42 @@ progress_cb.call(progress) end - it "returns false to abort if user clicks Abort" do - expect(Yast::UI).to receive(:PollInput).and_return(:abort) + context "when the delayed progress popup is open" do + before do + allow_any_instance_of(Yast::DelayedProgressPopup).to receive(:open?).and_return(true) + end - expect(progress_cb.call(progress)).to eq(false) - end + it "returns false to abort if user clicks Abort" do + expect(Yast::UI).to receive(:PollInput).and_return(:abort) - it "returns true to continue when no user input" do - expect(Yast::UI).to receive(:PollInput).and_return(nil) + expect(progress_cb.call(progress)).to eq(false) + end - expect(progress_cb.call(progress)).to eq(true) - end + it "returns true to continue when no user input" do + expect(Yast::UI).to receive(:PollInput).and_return(nil) + + expect(progress_cb.call(progress)).to eq(true) + end - it "returns true to continue on unknown user input" do - expect(Yast::UI).to receive(:PollInput).and_return(:next) + it "returns true to continue on unknown user input" do + expect(Yast::UI).to receive(:PollInput).and_return(:next) + + expect(progress_cb.call(progress)).to eq(true) + end + end - expect(progress_cb.call(progress)).to eq(true) + context "when the delayed progress popup is NOT open" do + before do + allow_any_instance_of(Yast::DelayedProgressPopup).to receive(:open?).and_return(false) + end + + it "does not ask for user input" do + expect(Yast::UI).to_not receive(:PollInput) + end + + it "returns true to continue" do + expect(progress_cb.call(progress)).to eq(true) + end end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-4.5.6/package/yast2.changes new/yast2-4.5.10/package/yast2.changes --- old/yast2-4.5.6/package/yast2.changes 2022-06-28 16:27:17.000000000 +0200 +++ new/yast2-4.5.10/package/yast2.changes 2022-07-28 12:32:46.000000000 +0200 @@ -1,4 +1,33 @@ ------------------------------------------------------------------- +Thu Jul 28 09:40:31 UTC 2022 - David Diaz <dgonza...@suse.com> + +- Do not ask for user input while checking file conflicts if the + delayed progress popup is not shown (bsc#1201924) +- 4.5.10 + +------------------------------------------------------------------- +Thu Jul 28 07:57:14 UTC 2022 - Michal Filka <mfi...@suse.com> + +- bsc#1200016 + - added a method for finding a package according to a pattern +- 4.5.9 + +------------------------------------------------------------------- +Wed Jul 27 13:41:45 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz> + +- Fixed libzypp initialization, in the YaST container read the + configured repositories from the host (related to bsc#1199840) +- 4.5.8 + +------------------------------------------------------------------- +Fri Jul 22 12:13:13 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz> + +- Text mode control center: always display the YaST modules + installed in the system root (when running in a container + display the modules installed in the container) (bsc#1199840) +- 4.5.7 + +------------------------------------------------------------------- Fri Jun 24 12:08:30 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz> - save_y2logs - check both Packages and Packages.db in diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-4.5.6/package/yast2.spec new/yast2-4.5.10/package/yast2.spec --- old/yast2-4.5.6/package/yast2.spec 2022-06-28 16:27:17.000000000 +0200 +++ new/yast2-4.5.10/package/yast2.spec 2022-07-28 12:32:46.000000000 +0200 @@ -17,7 +17,7 @@ Name: yast2 -Version: 4.5.6 +Version: 4.5.10 Release: 0 Summary: YaST2 Main Package