From 2994932a415d415fb52f49b0af7ceded9fa837e8 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 8 Mar 2006 20:09:59 +0000 Subject: (add_media) use --wget because curl doesn't handle nicely passwords (at least the way it's called from urpmi) --- mdkupdate | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mdkupdate') 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"; } -- cgit v1.2.1