diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2006-03-08 20:09:59 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2006-03-08 20:09:59 +0000 |
commit | 2994932a415d415fb52f49b0af7ceded9fa837e8 (patch) | |
tree | 3ced94741b841360b7721034de7eaee4c1c70a39 | |
parent | a0f7ac72d6be86049e90113c9c2af296b0ea91d4 (diff) | |
download | mgaonline-2994932a415d415fb52f49b0af7ceded9fa837e8.tar mgaonline-2994932a415d415fb52f49b0af7ceded9fa837e8.tar.gz mgaonline-2994932a415d415fb52f49b0af7ceded9fa837e8.tar.bz2 mgaonline-2994932a415d415fb52f49b0af7ceded9fa837e8.tar.xz mgaonline-2994932a415d415fb52f49b0af7ceded9fa837e8.zip |
(add_media) use --wget because curl doesn't handle nicely passwords
(at least the way it's called from urpmi)
-rwxr-xr-x | mdkupdate | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -268,7 +268,8 @@ sub add_media { my ($media_name, $mirror, $hdlist, $option) = @_; eval { system "/usr/sbin/urpmi.removemedia", $media_name; - system "/usr/sbin/urpmi.addmedia", if_($option, $option), $media_name, $mirror, "with", $hdlist; + # use wget because curl doesn't handle nicely passwords (at least the way it's called from urpmi); + system "/usr/sbin/urpmi.addmedia", if_($option, $option), '--wget', $media_name, $mirror, "with", $hdlist; }; $@ and die "Problem adding bundle media with urpmi"; } |