From 68a7a8346db9b784d5823d1d9d1cb5930a35ffc8 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Tue, 21 Mar 2006 14:20:51 +0000 Subject: Fix error reporting on missing "with" --- urpmi.addmedia | 4 ++-- 1 file 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(" 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( -- cgit v1.2.1