diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-10-27 18:28:11 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-10-27 18:28:11 +0000 |
commit | 9a535a669b82d374106c58d7407fc1033de467b0 (patch) | |
tree | 1cabe364d20ab4b3639e1c48cf4bb7151945d750 /urpme | |
parent | c122d0b8dec1c9fbf9f74e212dc02cac53c7c8a1 (diff) | |
download | urpmi-9a535a669b82d374106c58d7407fc1033de467b0.tar urpmi-9a535a669b82d374106c58d7407fc1033de467b0.tar.gz urpmi-9a535a669b82d374106c58d7407fc1033de467b0.tar.bz2 urpmi-9a535a669b82d374106c58d7407fc1033de467b0.tar.xz urpmi-9a535a669b82d374106c58d7407fc1033de467b0.zip |
- quotemeta arguments
- ensure "rpm -e" is not localized when looking for "package XXX is not installed" and "XXX is needed by XXX"
Diffstat (limited to 'urpme')
-rw-r--r-- | urpme | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -34,7 +34,7 @@ if (!$matches) { } } if ($matches || $maymatch) { - my $match = join "|", @l; + my $match = join "|", map { quotemeta } @l; @m = grep { /$match/ } map { chop; $_ } `rpm -qa`; if ($maymatch) { @@ -48,7 +48,7 @@ load_provides(); my %toremove; @toremove{$_, @{$provides{$_} || []}} = () foreach @m; my $changed = 1; while ($changed) { $changed = 0; local *F; - open F, "rpm -e --test " . join(" ", keys %toremove) . " 2>&1 |"; + open F, "LANGUAGE=C rpm -e --test " . join(" ", keys %toremove) . " 2>&1 |"; foreach (<F>) { if (/package (\S+) is not installed/) { delete $toremove{$1}; |