diff options
author | Francois Pons <fpons@mandriva.com> | 2003-01-24 11:32:23 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2003-01-24 11:32:23 +0000 |
commit | 5d32038190914f787e0d8e6ed08d0512517dda09 (patch) | |
tree | c0d40a66adf5d55a9a8c997e34f859f5d7f77ba6 /urpmi.update | |
parent | a453cbec2ea113f73a78cc357a283ecc7ef0baf2 (diff) | |
download | urpmi-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-x | urpmi.update | 2 |
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 |