summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-12-14 15:28:42 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-12-14 15:28:42 +0000
commiteb6b2900d400186a34d2e0d1982cecf555b499fb (patch)
tree7c448912e57bba6f2064c3af9fd744a18da415b6
parent9c99364c857d99fe0fa26e4c7385a78672240cd7 (diff)
downloadurpmi-eb6b2900d400186a34d2e0d1982cecf555b499fb.tar
urpmi-eb6b2900d400186a34d2e0d1982cecf555b499fb.tar.gz
urpmi-eb6b2900d400186a34d2e0d1982cecf555b499fb.tar.bz2
urpmi-eb6b2900d400186a34d2e0d1982cecf555b499fb.tar.xz
urpmi-eb6b2900d400186a34d2e0d1982cecf555b499fb.zip
remove broken deprecated check
($type was "http:/", and so the elsif was always failing...)
-rwxr-xr-xurpmi.addmedia3
1 files changed, 0 insertions, 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 <url> (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("<relative path of hdlist> 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,