diff options
author | Francois Pons <fpons@mandriva.com> | 2003-01-29 11:09:33 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2003-01-29 11:09:33 +0000 |
commit | d17f1ece1de5c7898e2f33ca7aa53d4a4a4a32d8 (patch) | |
tree | 455ce664e12471e57f26a38f28c557bd3ce014f9 | |
parent | 992d5c9fec4142342f4ac7a2f2696085edbc6436 (diff) | |
download | urpmi-d17f1ece1de5c7898e2f33ca7aa53d4a4a4a32d8.tar urpmi-d17f1ece1de5c7898e2f33ca7aa53d4a4a4a32d8.tar.gz urpmi-d17f1ece1de5c7898e2f33ca7aa53d4a4a4a32d8.tar.bz2 urpmi-d17f1ece1de5c7898e2f33ca7aa53d4a4a4a32d8.tar.xz urpmi-d17f1ece1de5c7898e2f33ca7aa53d4a4a4a32d8.zip |
4.2-16mdk
-rw-r--r-- | urpm.pm | 1 | ||||
-rwxr-xr-x | urpmi.addmedia | 1 | ||||
-rw-r--r-- | urpmi.spec | 6 | ||||
-rwxr-xr-x | urpmi.update | 2 |
4 files changed, 9 insertions, 1 deletions
@@ -484,6 +484,7 @@ sub read_config { $v =~ /^'([^']*)'$/ and $v = $1; $v =~ /^"([^"]*)"$/ and $v = $1; $urpm->{options}{$k} = $v; } + next; } $_ and $urpm->{error}(_("syntax error in config file at line %s", $.)); } diff --git a/urpmi.addmedia b/urpmi.addmedia index eab379d7..6451e6ff 100755 --- a/urpmi.addmedia +++ b/urpmi.addmedia @@ -118,6 +118,7 @@ and [options] are from my ($type) = $url =~ m,^([^:]*)://, or $options{distrib} or die $usage; $urpm->read_config; + exists $options{limit_rate} or $options{limit_rate} = $urpm->{options}{'limit-rate'}; if (exists $options{distrib}) { if (defined $options{distrib}) { @@ -2,7 +2,7 @@ Name: urpmi Version: 4.2 -Release: 15mdk +Release: 16mdk License: GPL Source0: %{name}.tar.bz2 Source1: %{name}.logrotate @@ -205,6 +205,10 @@ fi %changelog +* Wed Jan 29 2003 François Pons <fpons@mandrakesoft.com> 4.2-16mdk +- fixed limit-rate and excludepath causing error in urpmi.cfg. +- take care of limit-rate in urpmi.update and urpmi.addmedia. + * Tue Jan 28 2003 François Pons <fpons@mandrakesoft.com> 4.2-15mdk - fixed verify-rpm (both in urpmi.cfg or command line). - fixed default options activated. diff --git a/urpmi.update b/urpmi.update index 51c7b85e..5fb32981 100755 --- a/urpmi.update +++ b/urpmi.update @@ -77,6 +77,8 @@ where <name> is a medium name to update. } $urpm->read_config; + exists $options{limit_rate} or $options{limit_rate} = $urpm->{options}{'limit-rate'}; + my @entries = map { $_->{name} } @{$urpm->{media}}; if ($options{all}) { |