From c5ca0a5b7b4d40f38fd705df005fa95a9d80b119 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 15 Oct 2008 14:42:37 +0000 Subject: - urpmi.addmedia o do not allow "/" in media name (#44765) --- urpmi.addmedia | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'urpmi.addmedia') diff --git a/urpmi.addmedia b/urpmi.addmedia index 90c38a5e..a073c81c 100755 --- a/urpmi.addmedia +++ b/urpmi.addmedia @@ -164,7 +164,7 @@ if ($options{distrib}) { quiet => $options{verbose} < 0, callback => \&urpm::download::sync_logger); } else { - $name or usage(); + $name && $name !~ m!/! or usage(); if ($with eq "with") { $relative_synthesis or usage N(" missing\n"); -- cgit v1.2.1