From 7cbe698213fc1c56859544523bad9e89d6f99f4f Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Sun, 23 Mar 2003 15:49:39 +0000 Subject: display cleanup question only if there were downloaded packages --- grpmi/grpmi.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grpmi/grpmi.pl b/grpmi/grpmi.pl index 74d8dd24..b39fb4e4 100755 --- a/grpmi/grpmi.pl +++ b/grpmi/grpmi.pl @@ -207,7 +207,7 @@ $exitstatus = 0; cleanup: if (!member('noclearcache', @grpmi_config)) { my @toclean = map { s/^-skipped&([^&]+)&$/$1/; if_(/^\Q$cache_location/, $_) } @ARGV; - if ($forced_exitstatus || $exitstatus && @toclean) { + if (@toclean && ($forced_exitstatus || $exitstatus)) { interactive_msg(N("Cleanup"), N("Cleanup question: there was an error during installation, do you want to remove the %d downloaded package(s)? -- cgit v1.2.1