aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-28 10:49:47 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-28 10:49:47 +0000
commitce4371d0a41ef254198c4e6f4d26637e0bb24932 (patch)
treed09087593933f0f7d9c00b95270d1ae40aebe893
parentef1e913b32c01d82aced47f5d5a6da23fd2d1a28 (diff)
downloadrpmdrake-ce4371d0a41ef254198c4e6f4d26637e0bb24932.tar
rpmdrake-ce4371d0a41ef254198c4e6f4d26637e0bb24932.tar.gz
rpmdrake-ce4371d0a41ef254198c4e6f4d26637e0bb24932.tar.bz2
rpmdrake-ce4371d0a41ef254198c4e6f4d26637e0bb24932.tar.xz
rpmdrake-ce4371d0a41ef254198c4e6f4d26637e0bb24932.zip
fix --distrib
-rw-r--r--NEWS1
-rwxr-xr-xgurpmi.addmedia2
2 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 6935b79b..16035da8 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
- gurpmi.addmedia:
o handle --mirrorlist
o drop 'with' parameter, it didn't work properly anymore (Anssi)
+ o fix --distrib
Version 4.9.8 - 25 March 2008, Thierry Vignaud
diff --git a/gurpmi.addmedia b/gurpmi.addmedia
index 993891e5..13a19296 100755
--- a/gurpmi.addmedia
+++ b/gurpmi.addmedia
@@ -88,6 +88,8 @@ while (@ARGV) {
if ($mirrorlist) {
($with_dir, $url) = ($url, undef);
+ } elsif ($distrib) {
+ ($name, $url) = ('', $name);
} elsif ($url !~ m,^(([^:]*):/)?/,) {
interactive_msg('gurpmi.addmedia',
N("bad <url> (for local directory, the path must be absolute)") . "\n\n$url");