summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-02 14:32:40 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-02 14:32:40 +0000
commit1e8e8f5d70d514690736633dfd22c3d1bb6b09e4 (patch)
tree05f258fdd7fe9d7eec11d3f351a9cfca9424c50b /urpm
parent26917a10c5c97986d9f3000983b168eb005df46b (diff)
downloadurpmi-1e8e8f5d70d514690736633dfd22c3d1bb6b09e4.tar
urpmi-1e8e8f5d70d514690736633dfd22c3d1bb6b09e4.tar.gz
urpmi-1e8e8f5d70d514690736633dfd22c3d1bb6b09e4.tar.bz2
urpmi-1e8e8f5d70d514690736633dfd22c3d1bb6b09e4.tar.xz
urpmi-1e8e8f5d70d514690736633dfd22c3d1bb6b09e4.zip
simplify
Diffstat (limited to 'urpm')
-rw-r--r--urpm/install.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/install.pm b/urpm/install.pm
index ec21c9b8..f3eb971d 100644
--- a/urpm/install.pm
+++ b/urpm/install.pm
@@ -245,7 +245,7 @@ sub install {
@errors = $trans->run($urpm, %options);
#- don't clear cache if transaction failed. We might want to retry.
- if (@errors == 0 && !$options{test} && $options{post_clean_cache}) {
+ if (!@errors && !$options{test} && $options{post_clean_cache}) {
#- examine the local cache to delete packages which were part of this transaction
my $cachedir = "$urpm->{cachedir}/rpms";
my @pkgs = grep { -e "$cachedir/$_" } map { $_->filename } @trans_pkgs;