summaryrefslogtreecommitdiffstats
path: root/perl-install/do_pkgs.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-08-07 10:37:06 +0000
committerThierry Vignaud <tv@mageia.org>2012-08-07 10:37:06 +0000
commit953d7afdf5c36034e52e81e42313f686211b878d (patch)
tree6627f3a7242f034e5473661dec6f5a36278d737b /perl-install/do_pkgs.pm
parent98cef4fd893fbf5ee69d0cb921b61a72bc78fe72 (diff)
downloaddrakx-backup-do-not-use-953d7afdf5c36034e52e81e42313f686211b878d.tar
drakx-backup-do-not-use-953d7afdf5c36034e52e81e42313f686211b878d.tar.gz
drakx-backup-do-not-use-953d7afdf5c36034e52e81e42313f686211b878d.tar.bz2
drakx-backup-do-not-use-953d7afdf5c36034e52e81e42313f686211b878d.tar.xz
drakx-backup-do-not-use-953d7afdf5c36034e52e81e42313f686211b878d.zip
(ensure_files_are_installed) do not popup if we've no packages to install
Diffstat (limited to 'perl-install/do_pkgs.pm')
-rw-r--r--perl-install/do_pkgs.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/do_pkgs.pm b/perl-install/do_pkgs.pm
index dd9e589b6..cb33c6ab8 100644
--- a/perl-install/do_pkgs.pm
+++ b/perl-install/do_pkgs.pm
@@ -73,6 +73,7 @@ sub ensure_files_are_installed {
my ($do, $pkgs, $b_auto) = @_;
my @not_installed = map { my ($package, $file) = @$_; if_(!-e "$::prefix$file", $package) } @$pkgs;
+ return if !@not_installed;
$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;