Olivier Blin <[EMAIL PROTECTED]> writes:

> > Try "grep limit_rate /usr/lib/perl5/vendor_perl/5.8.0/urpm.pm"
> > Bandwith limit is almost here, it would be quite esay to add one or
> > two more lines of code in urpm.pm to handle a "limit_rate: xxx"
> > option in urpmi.cfg
> 
> damned, it's already here, but there's a typo, line 430 :
> elsif (($k, $v) =
> /^(limit-rate|excludepath|key_ids|split-(?:level|length))\s*:\s*(.*)$/)
> {                 unless (exists($urpm->{options}{$k})) {
>                       $v =~ /^'([^']*)'$/ and $v = $1; $v =~ /^"([^"]*)"$/ and $v =
> $1;                   $urpm->{options}{$k} = $v;
>                   }
> 
> "limit-rate" should be "limit_rate" ...
> Otherwise it won't work :)

Strange, it is effectively a bit bad written here as limit-rate is public option
and limit_rate is internal name (to avoid quoting the string ... in order to
save my fingers...).

key_ids is an exception, I shouldn't have named this one as this.

François.

Reply via email to