aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-12-14 09:25:03 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-12-14 09:25:03 +0000
commitf9df1d9c47d9f3c6bfb1297b46569c81fd4034fd (patch)
treee5733202042cd6d5e0dc5333fa083b6cdbb8af2b
parent08367c5391794c34d53a903fc3de9fe36917bf3f (diff)
downloadrpmdrake-f9df1d9c47d9f3c6bfb1297b46569c81fd4034fd.tar
rpmdrake-f9df1d9c47d9f3c6bfb1297b46569c81fd4034fd.tar.gz
rpmdrake-f9df1d9c47d9f3c6bfb1297b46569c81fd4034fd.tar.bz2
rpmdrake-f9df1d9c47d9f3c6bfb1297b46569c81fd4034fd.tar.xz
rpmdrake-f9df1d9c47d9f3c6bfb1297b46569c81fd4034fd.zip
Quote fullname in regular expressions (for names like libstdc++)
-rwxr-xr-xrpmdrake2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmdrake b/rpmdrake
index 3ecff826..19798587 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -1648,7 +1648,7 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-(
return if $MODE ne 'install' && $MODE ne 'update';
my $pkg = $urpm->{depslist}[$pkgid];
my $fullname = $pkg->fullname;
- my $trtype = (any { /$fullname/ } values %sources_install) ? 'install' : '(update|upgrade)';
+ my $trtype = (any { /\Q$fullname/ } values %sources_install) ? 'install' : '(update|upgrade)';
for ($pkg->files) { /\bREADME(\.$trtype)?\.urpmi$/ and $Readmes{$_} = $fullname }
close $fh;
},