From 6a88adb031f9aca64ede731491784bdc80e594c7 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 14 Dec 2006 15:40:23 +0000 Subject: oops, restore the check (it's only the variable we don't want) --- urpmi.addmedia | 1 + 1 file changed, 1 insertion(+) (limited to 'urpmi.addmedia') diff --git a/urpmi.addmedia b/urpmi.addmedia index ce7063a8..d6493991 100755 --- a/urpmi.addmedia +++ b/urpmi.addmedia @@ -111,6 +111,7 @@ $options{verbose} > 0 or $urpm->{log} = sub {}; $sync_logger = \&urpm::download::sync_logger if $options{verbose} > 1; $url or ($url, $name) = ($name, ''); +$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")); -- cgit v1.2.1