Skip to content

Commit

Permalink
Merge d4cb485 into cbe978b
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Jan 25, 2022
2 parents cbe978b + d4cb485 commit 0a308f5
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
6 changes: 6 additions & 0 deletions package/yast2-kdump.changes
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jan 25 14:42:40 UTC 2022 - Imobach Gonzalez Sosa <igonzalezsosa@suse.com>

- Use Package module instead of PackageSystem (bsc#1194886).
- 4.4.2

-------------------------------------------------------------------
Mon Sep 6 09:28:56 UTC 2021 - David Diaz <dgonzalez@suse.com>

Expand Down
10 changes: 5 additions & 5 deletions package/yast2-kdump.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2-kdump
Version: 4.4.1
Version: 4.4.2
Release: 0
Summary: Configuration of kdump
License: GPL-2.0-only
Expand All @@ -30,13 +30,13 @@ BuildRequires: rubygem(%{rb_default_ruby_abi}:rspec)
BuildRequires: rubygem(%{rb_default_ruby_abi}:yast-rake)
BuildRequires: update-desktop-files
BuildRequires: yast2
# Yast::Arch.paravirtualized_xen_guest?
BuildRequires: yast2 >= 4.3.45
# Replace PackageSystem with Package
BuildRequires: yast2 >= 4.4.38
BuildRequires: yast2-bootloader
BuildRequires: yast2-buildtools >= 4.2.2

# Yast::Arch.paravirtualized_xen_guest?
Requires: yast2 >= 4.3.45
# Replace PackageSystem with Package
Requires: yast2 >= 4.4.38
# Kernel parameters with multiple values and bug#945479 fixed
Requires: yast2-bootloader >= 3.1.148
Requires: yast2-ruby-bindings >= 1.0.0
Expand Down
4 changes: 2 additions & 2 deletions src/include/kdump/complex.rb
Expand Up @@ -42,7 +42,7 @@ def initialize_kdump_complex(include_target)
Yast.import "Report"
Yast.import "Mode"
Yast.import "Message"
Yast.import "PackageSystem"
Yast.import "Package"

Yast.include include_target, "kdump/helps.rb"
end
Expand All @@ -65,7 +65,7 @@ def PollAbort
def InstallPackages
# install packages
package_list = KdumpClass::KDUMP_PACKAGES
if !PackageSystem.CheckAndInstallPackages(package_list)
if !Package.CheckAndInstallPackages(package_list)
Report.Error(Message.CannotContinueWithoutPackagesInstalled)
Builtins.y2error(
"[kdump] Installation of package list %1 failed or aborted",
Expand Down
8 changes: 4 additions & 4 deletions src/include/kdump/uifunctions.rb
Expand Up @@ -36,7 +36,7 @@ def initialize_kdump_uifunctions(_include_target)
Yast.import "Kdump"
Yast.import "Service"
Yast.import "Package"
Yast.import "PackageSystem"
Yast.import "Package"
Yast.import "Mode"

# EXAMPLE FUNCTIONS
Expand Down Expand Up @@ -687,7 +687,7 @@ def ValidTargetKdump(_key, _event)
"SMB/CIFS share cannot be mounted, installing missing 'cifs-mount' package..."
)
# install cifs-mount package
PackageSystem.CheckAndInstallPackages(["cifs-mount"])
Package.CheckAndInstallPackages(["cifs-mount"])
end

value = Builtins.tostring(UI.QueryWidget(Id("server"), :Value))
Expand Down Expand Up @@ -1235,7 +1235,7 @@ def ValidDumpLevel(_key, _event)
package_list = []
package_list = Builtins.add(package_list, "makedumpfile")

if !PackageSystem.CheckAndInstallPackages(package_list)
if !Package.CheckAndInstallPackages(package_list)
result = false

if !Mode.commandline
Expand Down Expand Up @@ -1512,7 +1512,7 @@ def ValidDumpFormat(_key, _event)
package_list = []
package_list = Builtins.add(package_list, "makedumpfile")

if !PackageSystem.CheckAndInstallPackages(package_list)
if !Package.CheckAndInstallPackages(package_list)
result = false

if !Mode.commandline
Expand Down

0 comments on commit 0a308f5

Please sign in to comment.