summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-08-13 10:35:18 +0000
committerThierry Vignaud <tv@mageia.org>2012-08-13 10:35:18 +0000
commit25bc715d2af7d0a77273d6b60201245d44a1d536 (patch)
treea717494c4dae39977f7a6da62c85a3c274951031
parent03af5cea74c7c126b06387ea32673ac8c8718193 (diff)
downloaddrakx-25bc715d2af7d0a77273d6b60201245d44a1d536.tar
drakx-25bc715d2af7d0a77273d6b60201245d44a1d536.tar.gz
drakx-25bc715d2af7d0a77273d6b60201245d44a1d536.tar.bz2
drakx-25bc715d2af7d0a77273d6b60201245d44a1d536.tar.xz
drakx-25bc715d2af7d0a77273d6b60201245d44a1d536.zip
(ensure_files_are_installed) do not popup if we've no packages to instal
(backported from trunk)
-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 f5c73fd88..0ae616814 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;