From 1e8e8f5d70d514690736633dfd22c3d1bb6b09e4 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 2 Jul 2008 14:32:40 +0000 Subject: simplify --- urpm/install.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'urpm/install.pm') 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; -- cgit v1.2.1