summaryrefslogtreecommitdiffstats
path: root/urpmi.update
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-01-24 11:32:23 +0000
committerFrancois Pons <fpons@mandriva.com>2003-01-24 11:32:23 +0000
commit5d32038190914f787e0d8e6ed08d0512517dda09 (patch)
treec0d40a66adf5d55a9a8c997e34f859f5d7f77ba6 /urpmi.update
parenta453cbec2ea113f73a78cc357a283ecc7ef0baf2 (diff)
downloadurpmi-5d32038190914f787e0d8e6ed08d0512517dda09.tar
urpmi-5d32038190914f787e0d8e6ed08d0512517dda09.tar.gz
urpmi-5d32038190914f787e0d8e6ed08d0512517dda09.tar.bz2
urpmi-5d32038190914f787e0d8e6ed08d0512517dda09.tar.xz
urpmi-5d32038190914f787e0d8e6ed08d0512517dda09.zip
add --limit-rate support to urpmi, urpmi.addmedia and urpmi.update
Diffstat (limited to 'urpmi.update')
-rwxr-xr-xurpmi.update2
1 files changed, 2 insertions, 0 deletions
diff --git a/urpmi.update b/urpmi.update
index c9c9b8d7..51c7b85e 100755
--- a/urpmi.update
+++ b/urpmi.update
@@ -41,6 +41,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 };
/^--proxy$/ and do {
my ($proxy, $port) = ($_ = shift @_) =~ m,^(?:http://)?([^:]+(:\d+)?)/*$, or
die _("bad proxy declaration on command line\n");
@@ -61,6 +62,7 @@ where <name> is a medium name to update.
") . _(" --help - print this help message.
") . _(" --wget - use wget to retrieve distant files.
") . _(" --curl - use curl to retrieve distant files.
+") . _(" --limit-rate - limit the download speed.
") . _(" --proxy - use specified HTTP proxy, the port number is assumed
to be 1080 by default (format is <proxyhost[:port]>).
") . _(" --proxy-user - specify user and password to use for proxy