summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-08-07 10:37:14 +0000
committerThierry Vignaud <tv@mageia.org>2012-08-07 10:37:14 +0000
commitc33dd27bd463e863aea629b272b6e3cfe8892241 (patch)
tree2e3643933ebe500a5806bbf1b70d9561e23fb3b5 /perl-install/any.pm
parent953d7afdf5c36034e52e81e42313f686211b878d (diff)
downloaddrakx-backup-do-not-use-c33dd27bd463e863aea629b272b6e3cfe8892241.tar
drakx-backup-do-not-use-c33dd27bd463e863aea629b272b6e3cfe8892241.tar.gz
drakx-backup-do-not-use-c33dd27bd463e863aea629b272b6e3cfe8892241.tar.bz2
drakx-backup-do-not-use-c33dd27bd463e863aea629b272b6e3cfe8892241.tar.xz
drakx-backup-do-not-use-c33dd27bd463e863aea629b272b6e3cfe8892241.zip
(install_acpi_pkgs) install acpi & acpid at once, in only one transaction
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index c2f7872dc..6291e2d8b 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -116,8 +116,7 @@ sub install_acpi_pkgs {
my $acpi = bootloader::get_append_with_key($b, 'acpi');
my $use_acpi = !member($acpi, 'off', 'ht');
if ($use_acpi) {
- $do_pkgs->ensure_is_installed('acpi', '/usr/bin/acpi', $::isInstall);
- $do_pkgs->ensure_is_installed('acpid', '/usr/sbin/acpid', $::isInstall);
+ $do_pkgs->ensure_files_are_installed([ [ 'acpi', '/usr/bin/acpi' ], [ 'acpid', '/usr/sbin/acpid' ] ], $::isInstall);
}
require services;
services::set_status($_, $use_acpi, $::isInstall) foreach qw(acpi acpid);