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

[lintian] 01/01: c/changelog-file: Fix invalid comparison



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

nthykier pushed a commit to branch master
in repository lintian.

commit d68850b03939e1ae667fd70e22c37de2d8b7b6dd
Author: Jakub Wilk <jwilk@debian.org>
Date:   Thu Aug 13 15:00:09 2015 +0200

    c/changelog-file: Fix invalid comparison
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 checks/changelog-file.pm | 2 +-
 debian/changelog         | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/checks/changelog-file.pm b/checks/changelog-file.pm
index 1cdd9ea..a83895b 100644
--- a/checks/changelog-file.pm
+++ b/checks/changelog-file.pm
@@ -330,7 +330,7 @@ sub run {
                     tag 'possible-new-upstream-release-without-new-version';
                 }
                 if ($first_debian =~ /^\d+$/ and $second_debian =~ /^\d+$/) {
-                    unless ($second_debian == $first_debian + 1) {
+                    unless ($first_debian == $second_debian + 1) {
                         tag 'non-consecutive-debian-revision';
                     }
                 }
diff --git a/debian/changelog b/debian/changelog
index 8263be4..e8dc9c9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,13 +2,16 @@ lintian (2.5.36) UNRELEASED; urgency=medium
 
   XXX: generate tag summary with private/generate-tag-summary
 
+  * checks/changelog-file.pm:
+    + [JW] Fix invalid comparison leading to false positive
+      non-consecutive-debian-revision tags.  (Closes: #794995)
   * checks/cruft.pm:
     + [BR] Avoid a false positive for gfdl detection in krusader.
       Remove line number before running the detection.
     + [BR] Avoid another gfdl false positive in oidentd, sdlbasic,
       smbc package.
   * checks/files.desc:
-    + [BR] Correct a few typos.  (Closes: #794953).
+    + [BR] Correct a few typos.  (Closes: #794953)
     + [BR] Rename files-privacybreach-may-use-debian-package
       to  privacy-breach-uses-embedded-file.  Thanks to
       Guillem Jover for the report.

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


Reply to: