summaryrefslogtreecommitdiffstats
path: root/urpmi.addmedia
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.addmedia
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.addmedia')
-rwxr-xr-xurpmi.addmedia8
1 files changed, 4 insertions, 4 deletions
diff --git a/urpmi.addmedia b/urpmi.addmedia
index 179524de..c9f5261c 100755
--- a/urpmi.addmedia
+++ b/urpmi.addmedia
@@ -86,7 +86,7 @@ and [options] are from
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");
@@ -97,8 +97,8 @@ and [options] are from
/^--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;
};
/^--distrib$/ and $options{distrib} = undef, next;
@@ -145,7 +145,7 @@ and [options] are from
unlink "$urpm->{cachedir}/partial/$basename";
eval {
$urpm->{log}(N("retrieving mirrors at %s ...", $options{from}));
- $urpm->{sync}({dir => "$urpm->{cachedir}/partial", quiet => 1, proxy => $urpm->{proxy}}, $options{from});
+ $urpm->{sync}({ dir => "$urpm->{cachedir}/partial", quiet => 1, proxy => $urpm->{proxy} }, $options{from});
$urpm->{log}(N("...retrieving done"));
};
$@ and $urpm->{log}(N("...retrieving failed: %s", $@));