[SCM] Debian package checker branch, master, updated. 2.2.6-17-gae9fa2e
The following commit has been merged in the master branch:
commit 2c697b9bfaac8e58db6f47d56cfbed2f5eaf746c
Author: Raphael Geissert <atomo64@gmail.com>
Date: Thu Feb 12 12:57:57 2009 -0600
Avoid a global performance penalty caused by the usage of $&
diff --git a/checks/copyright-file b/checks/copyright-file
index d9e47aa..c01192a 100644
--- a/checks/copyright-file
+++ b/checks/copyright-file
@@ -145,8 +145,8 @@ if (m,\<fill in (http/)?ftp site\>, or m/\<Must follow here\>/) {
tag "helper-templates-in-copyright", "";
}
-if (m,usr/share/common-licenses/(GPL|LGPL|BSD|Artistic)\.gz,) {
- tag "copyright-refers-to-compressed-license", "$&";
+if (m,(usr/share/common-licenses/(?:GPL|LGPL|BSD|Artistic)\.gz),) {
+ tag "copyright-refers-to-compressed-license", $1;
}
# Allow generic GPL references for packages licensed under the same terms as
@@ -163,8 +163,8 @@ if (m,(usr/share/common-licenses/(L?GPL|GFDL))[^-],i && !m,as Perl itself,i
}
}
-if (m,usr/share/common-licences,) {
- tag "copyright-refers-to-incorrect-directory", "$&";
+if (m,(usr/share/common-licences),) {
+ tag "copyright-refers-to-incorrect-directory", $1;
$wrong_directory_detected = 1;
}
--
Debian package checker
Reply to: