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.addmedia | |
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.addmedia')
-rwxr-xr-x | urpmi.addmedia | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/urpmi.addmedia b/urpmi.addmedia index 395c894d..eab379d7 100755 --- a/urpmi.addmedia +++ b/urpmi.addmedia @@ -53,6 +53,7 @@ and [options] are from ") . _(" --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 @@ -87,6 +88,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 }; /^--proxy$/ and do { my ($proxy, $port) = ($_ = shift @_) =~ m,^(?:http://)?([^:]+(:\d+)?)/*$, or die _("bad proxy declaration on command line\n"); |