Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package yast2-tune for openSUSE:Factory checked in at 2022-08-25 15:33:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2-tune (Old) and /work/SRC/openSUSE:Factory/.yast2-tune.new.2083 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-tune" Thu Aug 25 15:33:10 2022 rev:72 rq:999044 version:4.5.1 Changes: -------- --- /work/SRC/openSUSE:Factory/yast2-tune/yast2-tune.changes 2022-04-14 17:24:31.935197944 +0200 +++ /work/SRC/openSUSE:Factory/.yast2-tune.new.2083/yast2-tune.changes 2022-08-25 15:33:14.335943076 +0200 @@ -1,0 +2,6 @@ +Wed Aug 24 09:52:36 UTC 2022 - Stefan Hundhammer <shundham...@suse.com> + +- Added runtime dependency on hwinfo (bsc#1202651) +- 4.5.1 + +------------------------------------------------------------------- Old: ---- yast2-tune-4.5.0.tar.bz2 New: ---- yast2-tune-4.5.1.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-tune.spec ++++++ --- /var/tmp/diff_new_pack.ePqpvo/_old 2022-08-25 15:33:15.583945800 +0200 +++ /var/tmp/diff_new_pack.ePqpvo/_new 2022-08-25 15:33:15.587945809 +0200 @@ -17,7 +17,7 @@ Name: yast2-tune -Version: 4.5.0 +Version: 4.5.1 Release: 0 Summary: YaST2 - Hardware Tuning License: GPL-2.0-or-later ++++++ yast2-tune-4.5.0.tar.bz2 -> yast2-tune-4.5.1.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-tune-4.5.0/package/yast2-tune.changes new/yast2-tune-4.5.1/package/yast2-tune.changes --- old/yast2-tune-4.5.0/package/yast2-tune.changes 2022-04-12 13:39:03.000000000 +0200 +++ new/yast2-tune-4.5.1/package/yast2-tune.changes 2022-08-24 13:26:17.000000000 +0200 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Wed Aug 24 09:52:36 UTC 2022 - Stefan Hundhammer <shundham...@suse.com> + +- Added runtime dependency on hwinfo (bsc#1202651) +- 4.5.1 + +------------------------------------------------------------------- Wed Apr 06 13:24:58 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz> - Bump version to 4.5.0 (bsc#1198109) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-tune-4.5.0/package/yast2-tune.spec new/yast2-tune-4.5.1/package/yast2-tune.spec --- old/yast2-tune-4.5.0/package/yast2-tune.spec 2022-04-12 13:39:03.000000000 +0200 +++ new/yast2-tune-4.5.1/package/yast2-tune.spec 2022-08-24 13:26:17.000000000 +0200 @@ -17,7 +17,7 @@ Name: yast2-tune -Version: 4.5.0 +Version: 4.5.1 Release: 0 Summary: YaST2 - Hardware Tuning License: GPL-2.0-or-later diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-tune-4.5.0/src/clients/hwinfo.rb new/yast2-tune-4.5.1/src/clients/hwinfo.rb --- old/yast2-tune-4.5.0/src/clients/hwinfo.rb 2022-04-12 13:39:03.000000000 +0200 +++ new/yast2-tune-4.5.1/src/clients/hwinfo.rb 2022-08-24 13:26:17.000000000 +0200 @@ -22,6 +22,9 @@ Yast.import "Directory" Yast.import "CommandLine" Yast.import "Icon" + Yast.import "Package" + Yast.import "Mode" + Yast.import "Report" #include "hwinfo/classnames.ycp"; Yast.include self, "hwinfo/routines.rb" @@ -54,7 +57,7 @@ "guihandler" => fun_ref(method(:StartGUI), "symbol ()") } - CommandLine.Run(@cmdline_description) + CommandLine.Run(@cmdline_description) # EOF @@ -159,7 +162,7 @@ ) ) ) - end + end # add processor index @@ -235,7 +238,7 @@ Builtins.foreach(dir) do |d| uniq = Builtins.add(uniq, d) if !Builtins.contains(uniq, d) - end + end dir = deep_copy(uniq) @@ -284,9 +287,25 @@ end end + # Check if the "hwinfo" package or binary is available and possibly offer + # to install it. + # + # @return [Boolean] true if success, false if error + # + def ensure_hwinfo_available + return true unless Mode.normal + + return true if Package.CheckAndInstallPackages(["hwinfo"]) + + Report.Error(Message.CannotContinueWithoutPackagesInstalled) + false + end + # Main def StartGUI + return :back unless ensure_hwinfo_available + # display progress popup OpenProbingPopup()