summaryrefslogtreecommitdiffstats
path: root/urpmi.addmedia
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-02-14 13:32:39 +0000
committerFrancois Pons <fpons@mandriva.com>2001-02-14 13:32:39 +0000
commit2a2de4e6275563b1d974f695ef87fa7748df6520 (patch)
tree06b08a8d69d87e756dfed5d3dc9cf180d2bbcbf7 /urpmi.addmedia
parent81c13ed0d79db9b10de7eda92115f12283e13409 (diff)
downloadurpmi-2a2de4e6275563b1d974f695ef87fa7748df6520.tar
urpmi-2a2de4e6275563b1d974f695ef87fa7748df6520.tar.gz
urpmi-2a2de4e6275563b1d974f695ef87fa7748df6520.tar.bz2
urpmi-2a2de4e6275563b1d974f695ef87fa7748df6520.tar.xz
urpmi-2a2de4e6275563b1d974f695ef87fa7748df6520.zip
*** empty log message ***
Diffstat (limited to 'urpmi.addmedia')
-rwxr-xr-xurpmi.addmedia5
1 files changed, 2 insertions, 3 deletions
diff --git a/urpmi.addmedia b/urpmi.addmedia
index 83850b17..d31307b3 100755
--- a/urpmi.addmedia
+++ b/urpmi.addmedia
@@ -30,13 +30,12 @@ where <url> is one of
ftp://<login>:<password>@<host>/<path> with <relative filename of hdlist>
ftp://<host>/<path> with <relative filename of hdlist>
http://<host>/<path> with <relative filename of hdlist>
- removable_<device>_<number>://<path>
+ removable_<device>://<path>
";
$name or die $usage;
- my ($type, $dev, $num) = $url =~ m,^(file|ftp|http|removable_(\w+)_(\d+))://, or die $usage;
+ my ($type, $dev) = $url =~ m,^(file|ftp|http|removable_(\w+)(?:_\d+)?)://, or die $usage;
if ($type eq "removable") {
- $num =~ /^\d+$/ or die "$usage bad number (is `$num')\n";
$dev && -e "/dev/$dev" or die "$usage device `$dev' do not exist\n";
} elsif ($with eq "with") {
$relative_hdlist or die "$usage <relative path of hdlist> missing\n";