The following commit has been merged in the master branch:
commit 9282e0522058fab1f9f92ccd66756775fe057cde
Author: James McCoy <[email protected]>
Date:   Mon Apr 1 07:46:57 2013 -0400

    licensecheck: Regex-escape file contents that are used as part of a pattern.
    
    Closes: #704434
    Signed-off-by: James McCoy <[email protected]>

diff --git a/debian/changelog b/debian/changelog
index 470826c..ef0bdd4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,7 +1,12 @@
 devscripts (2.13.2) UNRELEASED; urgency=low
 
+  [ Julian Gilbey ]
   * Correct git location in debian/copyright file (Closes: #703853)
 
+  [ James McCoy ]
+  * licensecheck: Regex-escape file contents that are used as part of a
+    pattern.  (Closes: #704434)
+
  -- Julian Gilbey <[email protected]>  Sun, 24 Mar 2013 22:27:57 +0000
 
 devscripts (2.13.1) experimental; urgency=low
diff --git a/scripts/licensecheck.pl b/scripts/licensecheck.pl
index 9331c0e..a771a09 100755
--- a/scripts/licensecheck.pl
+++ b/scripts/licensecheck.pl
@@ -363,9 +363,9 @@ sub clean_comments {
                            \s\w
                        }xmg)
     ){
-        my $comment_length=length($first_match);
-        my $comment_re=qr{\s*  [$1]{${comment_length}}  \s*}x;
-        s/^$comment_re//mg;
+       my $comment_length=length($first_match);
+       my $comment_re=qr{\s*  [\Q$1\E]{${comment_length}}  \s*}x;
+       s/^$comment_re//mg;
     }
 
     # Remove Fortran comments

-- 
Git repository for devscripts

_______________________________________________
devscripts-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/devscripts-devel

Reply via email to