summaryrefslogtreecommitdiffstats
path: root/urpmi.addmedia
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-05-09 16:55:12 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-05-09 16:55:12 +0000
commit6c10071d5ab0d684b74b21ccc1d903bb949be2f2 (patch)
treec4e3e3459fd62620f7cd38a146db54e6c10fc89f /urpmi.addmedia
parent7eae17080707e4eb0f3737c7483f336097d1f6fa (diff)
downloadurpmi-6c10071d5ab0d684b74b21ccc1d903bb949be2f2.tar
urpmi-6c10071d5ab0d684b74b21ccc1d903bb949be2f2.tar.gz
urpmi-6c10071d5ab0d684b74b21ccc1d903bb949be2f2.tar.bz2
urpmi-6c10071d5ab0d684b74b21ccc1d903bb949be2f2.tar.xz
urpmi-6c10071d5ab0d684b74b21ccc1d903bb949be2f2.zip
remove "\n" from error message for re-use in gurpmi.addmedia
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 55fe9a3a..e1d0eece 100755
--- a/urpmi.addmedia
+++ b/urpmi.addmedia
@@ -108,7 +108,7 @@ $options{verbose} > 0 or $urpm->{log} = sub {};
$options{quiet} = 1 if $options{verbose} < 0;
$url or ($url, $name) = ($name, '');
-$url =~ m,^(([^:]*):/)?/, or die N("bad <url> (for local directory, the path must be absolute)\n");
+$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"));