summaryrefslogtreecommitdiffstats
path: root/urpm/install.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-04 13:44:50 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-04 13:44:50 +0000
commit9c33802a2aa43f202f74449aedca495afe60c3b2 (patch)
tree87e3558368d05456be31c68f6e7b6b0085a8d80d /urpm/install.pm
parentdd207efc048dbd9e7faa7ed106f564232c31a7c7 (diff)
downloadurpmi-9c33802a2aa43f202f74449aedca495afe60c3b2.tar
urpmi-9c33802a2aa43f202f74449aedca495afe60c3b2.tar.gz
urpmi-9c33802a2aa43f202f74449aedca495afe60c3b2.tar.bz2
urpmi-9c33802a2aa43f202f74449aedca495afe60c3b2.tar.xz
urpmi-9c33802a2aa43f202f74449aedca495afe60c3b2.zip
(install) do not pretent removing packages from cache when there's
nothing to remove
Diffstat (limited to 'urpm/install.pm')
-rw-r--r--urpm/install.pm2
1 files changed, 1 insertions, 1 deletions
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", $_, $!));
}