summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpm.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm.pm b/urpm.pm
index 1b9bc968..2e212ddd 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -496,7 +496,7 @@ sub update_media {
}
}
} else {
- my $basename = $medium->{with_hdlist} =~ /^.*\/([^\/]*)$/ && $1;
+ my $basename = ($medium->{with_hdlist} =~ /^.*\/([^\/]*)$/ && $1) || $medium->{with_hdlist};
#- try to get the description if it has been found.
unlink "$urpm->{cachedir}/partial/descriptions";