diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-06-20 17:09:09 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-06-20 17:09:37 +0200 |
commit | 2d01297a181e37b65027d9a22f0ae5306a8abac2 (patch) | |
tree | b63fc6137c8914d29989d51833d221bc87fd239c | |
parent | 9ad04edf8b46f9ec4e86e23db9829d6c6319bcbb (diff) | |
download | drakx-2d01297a181e37b65027d9a22f0ae5306a8abac2.tar drakx-2d01297a181e37b65027d9a22f0ae5306a8abac2.tar.gz drakx-2d01297a181e37b65027d9a22f0ae5306a8abac2.tar.bz2 drakx-2d01297a181e37b65027d9a22f0ae5306a8abac2.tar.xz drakx-2d01297a181e37b65027d9a22f0ae5306a8abac2.zip |
refactor for next commit (& explain)
-rw-r--r-- | perl-install/bootloader.pm | 7 |
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; } |