diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-11-23 12:45:06 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-11-23 12:45:06 +0000 |
commit | dea174420c1129aa4a850dc8f2804419f1282885 (patch) | |
tree | e7ac2cbdb2be2130a86c3ea0d328d525235fbf62 | |
parent | c60f4e68a277f98a7694db56aec6d235bac4d5b6 (diff) | |
download | urpmi-dea174420c1129aa4a850dc8f2804419f1282885.tar urpmi-dea174420c1129aa4a850dc8f2804419f1282885.tar.gz urpmi-dea174420c1129aa4a850dc8f2804419f1282885.tar.bz2 urpmi-dea174420c1129aa4a850dc8f2804419f1282885.tar.xz urpmi-dea174420c1129aa4a850dc8f2804419f1282885.zip |
Quote package names in regular expressions, this could cause problems with
things like libstdc++
-rw-r--r-- | urpm.pm | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3024,7 +3024,7 @@ sub install { return unless defined $pkgid; my $pkg = $urpm->{depslist}[$pkgid]; my $fullname = $pkg->fullname; - my $trtype = (grep { /$fullname/ } values %$install) ? 'install' : '(upgrade|update)'; + my $trtype = (grep { /\Q$fullname\E/ } values %$install) ? 'install' : '(upgrade|update)'; for ($pkg->files) { /\bREADME(\.$trtype)?\.urpmi$/ and $readmes{$_} = $fullname } close $fh if defined $fh; }; |