diff options
-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}) { |