aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-28 11:00:11 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-28 11:00:11 +0000
commit8c2d6b960b796c258ceb62312e0813b16dbc0861 (patch)
tree7f7b998ca173d10a4230ebcec14e64ae447930ea
parente2c593b4af2a80dac05d9ce0c3c4275e0be6c6f1 (diff)
downloadrpmdrake-8c2d6b960b796c258ceb62312e0813b16dbc0861.tar
rpmdrake-8c2d6b960b796c258ceb62312e0813b16dbc0861.tar.gz
rpmdrake-8c2d6b960b796c258ceb62312e0813b16dbc0861.tar.bz2
rpmdrake-8c2d6b960b796c258ceb62312e0813b16dbc0861.tar.xz
rpmdrake-8c2d6b960b796c258ceb62312e0813b16dbc0861.zip
fix --distrib --mirrorlist support
-rw-r--r--NEWS1
-rwxr-xr-xgurpmi.addmedia4
2 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index b0358491..f25657e2 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,7 @@
o handle --mirrorlist (ansi)
o drop 'with' parameter, it didn't work properly anymore (Anssi)
o fix --distrib
+ o fix --distrib --mirrorlist
Version 4.9.8 - 25 March 2008, Thierry Vignaud
diff --git a/gurpmi.addmedia b/gurpmi.addmedia
index 13a19296..a4a5c4ad 100755
--- a/gurpmi.addmedia
+++ b/gurpmi.addmedia
@@ -100,6 +100,10 @@ while (@ARGV) {
shift @ARGV foreach 1 .. 2;
}
+if ($mirrorlist && $distrib && !@addmedia_args) {
+ @addmedia_args = [ '' ];
+}
+
$fromfile and do {
interactive_msg('gurpmi.addmedia',
N("%s