From 9c33802a2aa43f202f74449aedca495afe60c3b2 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 4 Mar 2008 13:44:50 +0000 Subject: (install) do not pretent removing packages from cache when there's nothing to remove --- 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 545cdbb0..a48fbf7c 100644 --- a/urpm/install.pm +++ b/urpm/install.pm @@ -249,7 +249,7 @@ sub install { #- 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; - $urpm->{log}(N("removing installed rpms (%s) from %s", join(' ', @pkgs), $cachedir)); + $urpm->{log}(N("removing installed rpms (%s) from %s", join(' ', @pkgs), $cachedir)) if @pkgs; foreach (@pkgs) { unlink "$cachedir/$_" or $urpm->{fatal}(1, N("removing %s failed: %s", $_, $!)); } -- cgit v1.2.1