diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-03-28 11:00:11 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-03-28 11:00:11 +0000 |
commit | 8c2d6b960b796c258ceb62312e0813b16dbc0861 (patch) | |
tree | 7f7b998ca173d10a4230ebcec14e64ae447930ea | |
parent | e2c593b4af2a80dac05d9ce0c3c4275e0be6c6f1 (diff) | |
download | rpmdrake-8c2d6b960b796c258ceb62312e0813b16dbc0861.tar rpmdrake-8c2d6b960b796c258ceb62312e0813b16dbc0861.tar.gz rpmdrake-8c2d6b960b796c258ceb62312e0813b16dbc0861.tar.bz2 rpmdrake-8c2d6b960b796c258ceb62312e0813b16dbc0861.tar.xz rpmdrake-8c2d6b960b796c258ceb62312e0813b16dbc0861.zip |
fix --distrib --mirrorlist support
-rw-r--r-- | NEWS | 1 | ||||
-rwxr-xr-x | gurpmi.addmedia | 4 |
2 files changed, 5 insertions, 0 deletions
@@ -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 |