summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-11-23 12:45:06 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-11-23 12:45:06 +0000
commitdea174420c1129aa4a850dc8f2804419f1282885 (patch)
treee7ac2cbdb2be2130a86c3ea0d328d525235fbf62 /urpm.pm
parentc60f4e68a277f98a7694db56aec6d235bac4d5b6 (diff)
downloadurpmi-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++
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm.pm b/urpm.pm
index 6226648c..ad4ac7e4 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -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;
};