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

Bug#794995: lintian: false positive in non-consecutive-debian-revision



Control: tags -1 + patch

* Joao Eriberto Mota Filho <eriberto@debian.org>, 2015-08-09, 03:33:
After rename a binary inside a package (in debian/control), I received a message from lintian saying about non-consecutive-debian-revision.

That's unrelated to the package rename, of course.

Implementation of this tag is completely broken. Lintian will emit this tag for most packages in the archive.

Here's a patch fix it...

--
Jakub Wilk
diff --git a/checks/changelog-file.pm b/checks/changelog-file.pm
--- a/checks/changelog-file.pm
+++ b/checks/changelog-file.pm
@@ -330,7 +330,7 @@
                     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';
                     }
                 }

Reply to: