[lintian] 02/02: Fix incorrectly anchored regexps. (Closes: #760987)
This is an automated email from the git hooks/post-receive script.
broucaries-guest pushed a commit to branch master
in repository lintian.
commit 711b870161b7967163e71934c688b79e42153d00
Author: Jakub Wilk <jwilk@debian.org>
Date: Thu Sep 11 20:53:57 2014 +0200
Fix incorrectly anchored regexps. (Closes: #760987)
---
checks/fields.pm | 6 +++---
debian/changelog | 2 ++
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/checks/fields.pm b/checks/fields.pm
index 67beb86..519608d 100644
--- a/checks/fields.pm
+++ b/checks/fields.pm
@@ -354,7 +354,7 @@ sub run {
my $march = $info->field('multi-arch');
unfold('multi-arch', \$march);
tag 'unknown-multi-arch-value', $pkg, $march
- unless $march =~ m/^no|foreign|allowed|same$/o;
+ unless $march =~ m/^(?:no|foreign|allowed|same)$/o;
if ( $march eq 'same'
&& $type eq 'binary'
&& defined $info->field('architecture')) {
@@ -368,7 +368,7 @@ sub run {
if ($type eq 'binary'){
if ($pkg =~ /^fonts-/) {
tag 'font-package-not-multi-arch-foreign'
- unless $info->field('multi-arch', 'no') =~ m/^foreign|allowed$/o;
+ unless $info->field('multi-arch', 'no') =~ m/^(?:foreign|allowed)$/o;
}
}
@@ -613,7 +613,7 @@ sub run {
my $uri = URI->new($homepage);
# not an absolute URI or (most likely) an invalid protocol
- unless ($uri->scheme && $uri->scheme =~ m/^ftp|https?|gopher$/o) {
+ unless ($uri->scheme && $uri->scheme =~ m/^(?:ftp|https?|gopher)$/o) {
tag 'bad-homepage', $orig;
}
diff --git a/debian/changelog b/debian/changelog
index ebbbc3b..d9493aa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,8 @@ lintian (2.5.27) UNRELEASED; urgency=medium
* checks/cruft.pm:
+ [BR] Fix a few false positives is for javascript source-is-missing.
+ [BR] Detect prebuilt doxygen documentation.
+ * checks/fields.pm:
+ + [JW] Fix incorrectly anchored regexps. (Closes: #760987)
* checks/files.pm:
+ [BR] Detect useless doxygen generated file. (Closes: #751945)
* checks/manpages.desc:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: