diff options
Diffstat (limited to 'urpmi.update')
-rwxr-xr-x | urpmi.update | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/urpmi.update b/urpmi.update index a8854538..3f5093a2 100755 --- a/urpmi.update +++ b/urpmi.update @@ -38,7 +38,7 @@ sub main { else { $options = { dir => $options, prefer => 'wget' } } urpm::sync_webfetch($options, @_) }, next; /^--curl$/ and $urpm->{sync} = \&urpm::sync_webfetch, next; - /^--limit-rate$/ and do {$options{limit_rate} = shift @_; next }; + /^--limit-rate$/ and do { $options{limit_rate} = shift @_; next }; /^--proxy$/ and do { my ($proxy, $port) = ($_ = shift @_) =~ m,^(?:http://)?([^:]+(:\d+)?)/*$, or die N("bad proxy declaration on command line\n"); @@ -49,8 +49,8 @@ sub main { /^--proxy-user$/ and do { ($_ = shift @_) =~ /(.+):(.+)/, or die N("bad proxy declaration on command line\n"); - $urpm->{proxy}->{user} = $1; - $urpm->{proxy}->{pwd} = $2; + $urpm->{proxy}{user} = $1; + $urpm->{proxy}{pwd} = $2; next; }; /^--?noa/ and next; #- default, keeped for compability. |