summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-06-20 17:09:09 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-06-20 17:09:37 +0200
commit2d01297a181e37b65027d9a22f0ae5306a8abac2 (patch)
treeb63fc6137c8914d29989d51833d221bc87fd239c /perl-install/bootloader.pm
parent9ad04edf8b46f9ec4e86e23db9829d6c6319bcbb (diff)
downloaddrakx-2d01297a181e37b65027d9a22f0ae5306a8abac2.tar
drakx-2d01297a181e37b65027d9a22f0ae5306a8abac2.tar.gz
drakx-2d01297a181e37b65027d9a22f0ae5306a8abac2.tar.bz2
drakx-2d01297a181e37b65027d9a22f0ae5306a8abac2.tar.xz
drakx-2d01297a181e37b65027d9a22f0ae5306a8abac2.zip
refactor for next commit (& explain)
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index a70c51f9a..faea83af0 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -2154,9 +2154,10 @@ sub ensure_pkg_is_installed {
my $main_method = main_method($bootloader->{method});
if (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;
- if (my $pkg = $suppl{$bootloader->{method}}) {
- $do_pkgs->ensure_is_installed(@$pkg, 1) or return 0;
- }
+ }
+ # Install gfx theme if needed:
+ if (my $pkg = $suppl{$bootloader->{method}}) {
+ $do_pkgs->ensure_is_installed(@$pkg, 1) or return 0;
}
1;
}