aboutsummaryrefslogtreecommitdiffstats
path: root/grpmi/grpmi.pl
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-02-13 14:56:07 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-02-13 14:56:07 +0000
commit622fe059477df8ba5173486caca4d5b8628efc17 (patch)
treeab6c69d2dfbb8c31924f852d14985115bfe9a549 /grpmi/grpmi.pl
parentef5d4874ed831dfcdc342d4ca3c52e742686d974 (diff)
downloadrpmdrake-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-xgrpmi/grpmi.pl2
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)?