summaryrefslogtreecommitdiffstats
path: root/urpmi.update
diff options
context:
space:
mode:
Diffstat (limited to 'urpmi.update')
-rwxr-xr-xurpmi.update7
1 files changed, 2 insertions, 5 deletions
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