From eb6b2900d400186a34d2e0d1982cecf555b499fb Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 14 Dec 2006 15:28:42 +0000 Subject: remove broken deprecated check ($type was "http:/", and so the elsif was always failing...) --- urpmi.addmedia | 3 --- 1 file changed, 3 deletions(-) diff --git a/urpmi.addmedia b/urpmi.addmedia index 07bfeb03..17164d6b 100755 --- a/urpmi.addmedia +++ b/urpmi.addmedia @@ -112,7 +112,6 @@ $options{verbose} > 0 or $urpm->{log} = sub {}; $sync_logger = \&urpm::download::sync_logger if $options{verbose} > 1; $url or ($url, $name) = ($name, ''); -my ($type) = $url =~ m,^(([^:]*):/)?/, or die N("bad (for local directory, the path must be absolute)\n"); if ($< != 0) { $urpm->{fatal}(1, N("Only superuser is allowed to add media")); @@ -164,8 +163,6 @@ if ($options{distrib}) { if ($with eq "with") { $relative_hdlist or usage N(" missing\n"); - } elsif ($type =~ /^(ftp|https?|rsync|ssh)$/) { - $options{probe_with} or usage N("`with' missing for network media\n"); } urpm::media::add_medium($urpm, -- cgit v1.2.1