From 622fe059477df8ba5173486caca4d5b8628efc17 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 13 Feb 2003 14:56:07 +0000 Subject: only ask cleanup question if there are more than 0 packages to cleanup :) --- grpmi/grpmi.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)? -- cgit v1.2.1