summaryrefslogtreecommitdiffstats
path: root/perl-install/do_pkgs.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-23 20:50:56 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-23 20:50:56 +0000
commita061c3bb3c46565b18eeea43b8e038e1cc01a236 (patch)
tree889ab558c582b065e932049b38b1c1f835c411ae /perl-install/do_pkgs.pm
parent85d8c5e7278f0cd99191aef911a879a922a0b472 (diff)
downloaddrakx-a061c3bb3c46565b18eeea43b8e038e1cc01a236.tar
drakx-a061c3bb3c46565b18eeea43b8e038e1cc01a236.tar.gz
drakx-a061c3bb3c46565b18eeea43b8e038e1cc01a236.tar.bz2
drakx-a061c3bb3c46565b18eeea43b8e038e1cc01a236.tar.xz
drakx-a061c3bb3c46565b18eeea43b8e038e1cc01a236.zip
perl_checker cleanups
Diffstat (limited to 'perl-install/do_pkgs.pm')
-rw-r--r--perl-install/do_pkgs.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/do_pkgs.pm b/perl-install/do_pkgs.pm
index 02761ebcb..f5c73fd88 100644
--- a/perl-install/do_pkgs.pm
+++ b/perl-install/do_pkgs.pm
@@ -72,7 +72,7 @@ sub ensure_binary_is_installed {
sub ensure_files_are_installed {
my ($do, $pkgs, $b_auto) = @_;
- my @not_installed = map { my ($package, $file) = @$_; -e "$::prefix$file" ? () : $package } @$pkgs;
+ my @not_installed = map { my ($package, $file) = @$_; if_(!-e "$::prefix$file", $package) } @$pkgs;
$do->in->ask_okcancel(N("Warning"), N("The following packages need to be installed:\n") . join(', ', @not_installed), 1)
or return if !$b_auto && $do->in;