summaryrefslogtreecommitdiffstats
path: root/urpmi.addmedia
diff options
context:
space:
mode:
Diffstat (limited to 'urpmi.addmedia')
-rwxr-xr-xurpmi.addmedia2
1 files changed, 1 insertions, 1 deletions
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("<relative path of synthesis> missing\n");