summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-09-11 17:55:04 +0000
committerFrancois Pons <fpons@mandriva.com>2001-09-11 17:55:04 +0000
commit1bd0d656514612a737ea1b1011d9a210ad17ccd3 (patch)
tree385f56a24f297c4f19efcee0f98ced2317e82d4c /urpm.pm
parent4a679109584c808942101f808f2dc88ba65abf97 (diff)
downloadurpmi-1bd0d656514612a737ea1b1011d9a210ad17ccd3.tar
urpmi-1bd0d656514612a737ea1b1011d9a210ad17ccd3.tar.gz
urpmi-1bd0d656514612a737ea1b1011d9a210ad17ccd3.tar.bz2
urpmi-1bd0d656514612a737ea1b1011d9a210ad17ccd3.tar.xz
urpmi-1bd0d656514612a737ea1b1011d9a210ad17ccd3.zip
fixed bug when trying to urpmi.addmedia name http://... with hdlist.cz, a
missing / in with_hdlist cause the bug...
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 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";