diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-02-13 14:56:07 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-02-13 14:56:07 +0000 |
commit | 622fe059477df8ba5173486caca4d5b8628efc17 (patch) | |
tree | ab6c69d2dfbb8c31924f852d14985115bfe9a549 /grpmi/grpmi.pl | |
parent | ef5d4874ed831dfcdc342d4ca3c52e742686d974 (diff) | |
download | rpmdrake-622fe059477df8ba5173486caca4d5b8628efc17.tar rpmdrake-622fe059477df8ba5173486caca4d5b8628efc17.tar.gz rpmdrake-622fe059477df8ba5173486caca4d5b8628efc17.tar.bz2 rpmdrake-622fe059477df8ba5173486caca4d5b8628efc17.tar.xz rpmdrake-622fe059477df8ba5173486caca4d5b8628efc17.zip |
only ask cleanup question if there are more than 0 packages to
cleanup :)
Diffstat (limited to 'grpmi/grpmi.pl')
-rwxr-xr-x | grpmi/grpmi.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/grpmi/grpmi.pl b/grpmi/grpmi.pl index f5be91cb..bcb3ebe4 100755 --- a/grpmi/grpmi.pl +++ b/grpmi/grpmi.pl @@ -206,7 +206,7 @@ $exitstatus = 0; cleanup: if (!member('noclearcache', @grpmi_config)) { my @toclean = map { s/^-skipped&([^&]+)&$/$1/; if_(/^\Q$cache_location/, $_) } @ARGV; - if ($forced_exitstatus || $exitstatus) { + if ($forced_exitstatus || $exitstatus && @toclean) { interactive_msg(_("Cleanup"), _("Cleanup question: there was an error during installation, do you want to remove the %d downloaded package(s)? |