summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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(