summaryrefslogtreecommitdiffstats
path: root/urpmi.addmedia
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-10-15 14:42:37 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-10-15 14:42:37 +0000
commitc5ca0a5b7b4d40f38fd705df005fa95a9d80b119 (patch)
treeaf5a950e4d4b8b9d5e9bb5c16682584c02d142f2 /urpmi.addmedia
parent11e4be82c849eae3add21644438a428112a7cf94 (diff)
downloadurpmi-c5ca0a5b7b4d40f38fd705df005fa95a9d80b119.tar
urpmi-c5ca0a5b7b4d40f38fd705df005fa95a9d80b119.tar.gz
urpmi-c5ca0a5b7b4d40f38fd705df005fa95a9d80b119.tar.bz2
urpmi-c5ca0a5b7b4d40f38fd705df005fa95a9d80b119.tar.xz
urpmi-c5ca0a5b7b4d40f38fd705df005fa95a9d80b119.zip
- urpmi.addmedia
o do not allow "/" in media name (#44765)
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");