From d5e95fa23cf1d36d6e9709e5a2fea9bd4155d89c Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 28 Jan 2004 01:01:30 +0000 Subject: fix --wget and --curl in urpmi.update --- urpmi.update | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'urpmi.update') diff --git a/urpmi.update b/urpmi.update index 99fb2856..b861657e 100755 --- a/urpmi.update +++ b/urpmi.update @@ -34,11 +34,8 @@ sub main { /^--?z$/ and ++$options{compress}, next; /^--update$/ and $options{update} = 1, next; /^--force-key$/ and $options{forcekey} = 1, next; - /^--wget$/ and $urpm->{sync} = sub { my $options = shift @_; - if (ref $options) { $options->{prefer} = 'wget' } - else { $options = { dir => $options, prefer => 'wget' } } - urpm::sync_webfetch($options, @_) }, next; - /^--curl$/ and $urpm->{sync} = \&urpm::sync_webfetch, next; + /^--wget$/ and $urpm->{options}{downloader} = 'wget', next; + /^--curl$/ and $urpm->{options}{downloader} = 'curl', next; /^--limit-rate$/ and do { $options{limit_rate} = shift @_; next }; /^--proxy$/ and do { my ($proxy, $port) = ($_ = shift @_) =~ m,^(?:http://)?([^:]+(:\d+)?)/*$, or -- cgit v1.2.1