summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-03-21 14:20:51 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-03-21 14:20:51 +0000
commit68a7a8346db9b784d5823d1d9d1cb5930a35ffc8 (patch)
tree179b504a524b878cac824ca5c68b0cab93645b96
parente493f58493e326b9f33b6e3a512e9098d9922710 (diff)
downloadurpmi-68a7a8346db9b784d5823d1d9d1cb5930a35ffc8.tar
urpmi-68a7a8346db9b784d5823d1d9d1cb5930a35ffc8.tar.gz
urpmi-68a7a8346db9b784d5823d1d9d1cb5930a35ffc8.tar.bz2
urpmi-68a7a8346db9b784d5823d1d9d1cb5930a35ffc8.tar.xz
urpmi-68a7a8346db9b784d5823d1d9d1cb5930a35ffc8.zip
Fix error reporting on missing "with"
-rwxr-xr-xurpmi.addmedia4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpmi.addmedia b/urpmi.addmedia
index 0b77c1d3..4d46da86 100755
--- a/urpmi.addmedia
+++ b/urpmi.addmedia
@@ -139,8 +139,8 @@ if ($options{distrib}) {
if ($with eq "with") {
$relative_hdlist or usage N("<relative path of hdlist> missing\n");
- } elsif ($type =~ /ftp|http|rsync|ssh/) {
- $options{probe_with} || $with eq "with" or usage N("`with' missing for network media\n");
+ } elsif ($type =~ /^(ftp|https?|rsync|ssh)$/) {
+ $options{probe_with} or usage N("`with' missing for network media\n");
}
$urpm->add_medium(