summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-06-20 17:19:39 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-06-20 17:19:39 +0200
commitc9816a228f0898bbc82041f4ef7f0ced07d82d27 (patch)
tree7c9085fe8c52508038864dbb2e675089b46423d5
parent81d18422a6f5ce2649625fb684654dc1a76144a7 (diff)
downloaddrakx-c9816a228f0898bbc82041f4ef7f0ced07d82d27.tar
drakx-c9816a228f0898bbc82041f4ef7f0ced07d82d27.tar.gz
drakx-c9816a228f0898bbc82041f4ef7f0ced07d82d27.tar.bz2
drakx-c9816a228f0898bbc82041f4ef7f0ced07d82d27.tar.xz
drakx-c9816a228f0898bbc82041f4ef7f0ced07d82d27.zip
simplify generic case
-rw-r--r--perl-install/bootloader.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 23f3d26f3..446df0ade 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -2154,7 +2154,7 @@ sub ensure_pkg_is_installed {
if ($main_method eq 'grub2') {
$do_pkgs->ensure_binary_is_installed($pkg{grub2}, 'grub2-install', 1) or return 0;
} elsif (member($main_method, qw(grub grub2 lilo))) {
- $do_pkgs->ensure_binary_is_installed($pkg{$main_method} || $main_method, $h{$main_method} || $main_method, 1) or return 0;
+ $do_pkgs->ensure_binary_is_installed($main_method, $main_method, 1) or return 0;
}
# Install gfx theme if needed:
if (my $pkg = $suppl{$bootloader->{method}}) {