summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-03-08 20:09:59 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-03-08 20:09:59 +0000
commit2994932a415d415fb52f49b0af7ceded9fa837e8 (patch)
tree3ced94741b841360b7721034de7eaee4c1c70a39
parenta0f7ac72d6be86049e90113c9c2af296b0ea91d4 (diff)
downloadmgaonline-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-xmdkupdate3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdkupdate b/mdkupdate
index 894af7f0..2d31d5cb 100755
--- a/mdkupdate
+++ b/mdkupdate
@@ -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";
}