summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm.pm b/urpm.pm
index 772ada62..a2f2d204 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -1054,7 +1054,7 @@ sub update_media {
"../synthesis.hdlist$suffix.cz", !$suffix ? ("../synthesis.hdlist1.cz") : (),
"../base/hdlist$suffix.cz", !$suffix ? ("../base/hdlist1.cz") : (),
) {
- $basename = (/^.*\/([^\/]*)$/ && $1) || $_;
+ $basename = (/^.*\/([^\/]*)$/ && $1) || $_ or next;
unlink "$urpm->{cachedir}/partial/$basename";
eval {