The following commit has been merged in the master branch:
commit a45980dd011631fb20900af9083c74c432f3e046
Author: tony mancill <[email protected]>
Date: Sat Dec 15 11:29:40 2012 -0800
debsnap: Escape the package name when used in regex
Signed-off-by: James McCoy <[email protected]>
diff --git a/debian/changelog b/debian/changelog
index 7eae30a..ea99072 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -39,6 +39,9 @@ devscripts (2.12.6+exp1) UNRELEASED; urgency=low
* Don't auto reverse diffs when DEBDIFF_AUTO_VER_SORT is set to yes, and
when the version in both packages is the same. (Closes: #650732)
+ [ tony mancill ]
+ * debsnap: Escape the package name when used in regex. (Closes: #696018)
+
-- James McCoy <[email protected]> Sat, 15 Sep 2012 16:12:16 -0400
devscripts (2.12.6) unstable; urgency=low
diff --git a/scripts/debsnap.pl b/scripts/debsnap.pl
index 5b6cb35..13c2729 100755
--- a/scripts/debsnap.pl
+++ b/scripts/debsnap.pl
@@ -283,7 +283,7 @@ else {
my $file_name;
# fileinfo may match multiple files (e.g., orig tarball for
iceweasel 3.0.12)
foreach my $info (@$fileinfo) {
- if ($info->{name} =~ m/^${package}/) {
+ if ($info->{name} =~ m/^\Q${package}\E/) {
$file_name = $info->{name};
last;
}
--
Git repository for devscripts
_______________________________________________
devscripts-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/devscripts-devel