aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-03-23 15:49:39 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-03-23 15:49:39 +0000
commit7cbe698213fc1c56859544523bad9e89d6f99f4f (patch)
tree2176f306274bd81f73e280c7ffec3aeb7147e92f
parent69b094c8e25327496fe82a8f353a755055c2b53f (diff)
downloadrpmdrake-7cbe698213fc1c56859544523bad9e89d6f99f4f.tar
rpmdrake-7cbe698213fc1c56859544523bad9e89d6f99f4f.tar.gz
rpmdrake-7cbe698213fc1c56859544523bad9e89d6f99f4f.tar.bz2
rpmdrake-7cbe698213fc1c56859544523bad9e89d6f99f4f.tar.xz
rpmdrake-7cbe698213fc1c56859544523bad9e89d6f99f4f.zip
display cleanup question only if there were downloaded packages
-rwxr-xr-xgrpmi/grpmi.pl2
1 files changed, 1 insertions, 1 deletions
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)?