Pixel wrote:

> Borsenkow Andrej <[EMAIL PROTECTED]> writes:
> 
> 
>>In en locale urpme correctly finds dependent packages and suggest to remove
>>them. In ru locale it goes straight to rpm -e and fails.
>>
> 
> can you "perl -d" it? urpme is quite simple
> 
> i wonder what's going on, it doesn't even set locales :-(
> 
> 

It tries to grep for english messages in localized rpm output:

     open F, "rpm -e --test " . join(" ", keys %toremove) . " 2>&1 |";
     foreach (<F>) {
         if (/package (\S+) is not installed/) {
             delete $toremove{$1};
         } elsif (/is needed by (\S+)/ && ! exists $toremove{$1}) {
             $toremove{$1} = 1;
             $changed = 1;
         }
     }

(may be there are more places where it calls rpm).

You have to either get localized rpm messages in this case from rpm 
message file or make sure rpm is spawned with LANGUAGE=C.

-andrej

Reply via email to