[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 01/03: Allow quoting the distribution name in changelog entry.



This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository lintian.

commit c6dd84cabd0742ad00f2876e54308ae5c368f6e6
Author: Ben Finney <ben@benfinney.id.au>
Date:   Sat May 2 14:32:28 2015 +1000

    Allow quoting the distribution name in changelog entry.
    
    A description of the change from ‘experimental’ to ‘unstable’ may, for
    clarity, explicitly quote the distribution name. This change refines
    the regex to also match a description that uses quotation marks around
    the distribution name.
---
 checks/changelog-file.pm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/checks/changelog-file.pm b/checks/changelog-file.pm
index a5d0e07..e641c57 100644
--- a/checks/changelog-file.pm
+++ b/checks/changelog-file.pm
@@ -323,7 +323,10 @@ sub run {
             my $first_dist = lc $entries[0]->Distribution;
             my $second_dist = lc $entries[1]->Distribution;
             if ($first_dist eq 'unstable' and $second_dist eq 'experimental') {
-                unless ($entries[0]->Changes =~ /\bto\s+(?:unstable|sid)\b/im){
+                unless (
+                        $entries[0]->Changes
+                            =~ /\bto\s+['"‘“]?(?:unstable|sid)['"’”]?\b/im
+                        ) {
                     tag 'experimental-to-unstable-without-comment';
                 }
             }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: