summaryrefslogtreecommitdiffstats
path: root/urpmi.update
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-03-10 17:13:40 +0000
committerFrancois Pons <fpons@mandriva.com>2003-03-10 17:13:40 +0000
commit6e273cc7705f9d897adcf9aca05fad4b7409d3e8 (patch)
treeeb296cb8f421e769a153639a038c11a35d0e6fe4 /urpmi.update
parent5bd63030f44e02e51ed139a93f87f568424ddb2b (diff)
downloadurpmi-6e273cc7705f9d897adcf9aca05fad4b7409d3e8.tar
urpmi-6e273cc7705f9d897adcf9aca05fad4b7409d3e8.tar.gz
urpmi-6e273cc7705f9d897adcf9aca05fad4b7409d3e8.tar.bz2
urpmi-6e273cc7705f9d897adcf9aca05fad4b7409d3e8.tar.xz
urpmi-6e273cc7705f9d897adcf9aca05fad4b7409d3e8.zip
4.2-31mdk
Diffstat (limited to 'urpmi.update')
-rwxr-xr-xurpmi.update6
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.