summaryrefslogtreecommitdiffstats
path: root/urpmi.addmedia
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-12-14 15:40:23 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-12-14 15:40:23 +0000
commit6a88adb031f9aca64ede731491784bdc80e594c7 (patch)
treeaca0ac60bb98baca644b843da48c63016ac1d285 /urpmi.addmedia
parentdf8154ad5890760c3631bf78650a8f274938a21e (diff)
downloadurpmi-6a88adb031f9aca64ede731491784bdc80e594c7.tar
urpmi-6a88adb031f9aca64ede731491784bdc80e594c7.tar.gz
urpmi-6a88adb031f9aca64ede731491784bdc80e594c7.tar.bz2
urpmi-6a88adb031f9aca64ede731491784bdc80e594c7.tar.xz
urpmi-6a88adb031f9aca64ede731491784bdc80e594c7.zip
oops, restore the check (it's only the variable we don't want)
Diffstat (limited to 'urpmi.addmedia')
-rwxr-xr-xurpmi.addmedia1
1 files changed, 1 insertions, 0 deletions
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 <url> (for local directory, the path must be absolute)\n");
if ($< != 0) {
$urpm->{fatal}(1, N("Only superuser is allowed to add media"));