With the correct patch :)

S

>From d4d3f401a7186ea0d532612de8c65d6ba4e5ace6 Mon Sep 17 00:00:00 2001
From: Sylvestre Ledru <sylves...@debian.org>
Date: Sat, 16 Jan 2016 13:57:06 +0100
Subject: [PATCH] [SL] debian/watch can be version=4 now since #795804

---
 checks/watch-file.desc                                | 2 +-
 checks/watch-file.pm                                  | 2 +-
 debian/changelog                                      | 1 +
 t/tests/legacy-maintainer-scripts/debian/debian/watch | 2 +-
 t/tests/legacy-maintainer-scripts/tags                | 2 +-
 5 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/checks/watch-file.desc b/checks/watch-file.desc
index 792c85a..c3860f6 100644
--- a/checks/watch-file.desc
+++ b/checks/watch-file.desc
@@ -36,7 +36,7 @@ Certainty: certain
 Ref: uscan(1)
 Info: The <tt>version=</tt> line in the <tt>debian/watch</tt> file in this
  package declares an unknown version.  The currently known watch file
- versions are 2 and 3.
+ versions are 2, 3 and 4
 
 Tag: debian-watch-file-missing-version
 Severity: normal
diff --git a/checks/watch-file.pm b/checks/watch-file.pm
index 05eab9c..e3c1f60 100644
--- a/checks/watch-file.pm
+++ b/checks/watch-file.pm
@@ -78,7 +78,7 @@ sub run {
                 tag 'debian-watch-file-declares-multiple-versions', "line $.";
             }
             $watchver = $1;
-            if ($watchver ne '2' and $watchver ne '3') {
+            if ($watchver ne '2' and $watchver ne '3' and $watchver ne '4') {
                 tag 'debian-watch-file-unknown-version', $watchver;
             }
         } else {
diff --git a/debian/changelog b/debian/changelog
index 65a11c5..85388fa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -27,6 +27,7 @@ lintian (2.5.40) UNRELEASED; urgency=medium
     + [BR] Apply patch from Chris Lamb <la...@debian.org>,
       warn if debian/watch uses deprecated
       githubredir.debian.net scraper (Closes: #803106).
+    + [SL] debian/watch can be version=4 now since #795804
 
   * data/spelling/corrections*:
     + [JW] Add more corrections.
diff --git a/t/tests/legacy-maintainer-scripts/debian/debian/watch b/t/tests/legacy-maintainer-scripts/debian/debian/watch
index 982696c..430eea3 100644
--- a/t/tests/legacy-maintainer-scripts/debian/debian/watch
+++ b/t/tests/legacy-maintainer-scripts/debian/debian/watch
@@ -1,5 +1,5 @@
 # A whitespace is fine for uscan:
- version=4
+ version=5
 
 # Following line should not be matched:
 #opts=uversionmangle=s/$/+debian/,dversionmangle=s/foo/bar/ \
diff --git a/t/tests/legacy-maintainer-scripts/tags b/t/tests/legacy-maintainer-scripts/tags
index 48fbf15..c633187 100644
--- a/t/tests/legacy-maintainer-scripts/tags
+++ b/t/tests/legacy-maintainer-scripts/tags
@@ -47,7 +47,7 @@ W: maintainer-scripts source: debhelper-but-no-misc-depends maintainer-scripts
 W: maintainer-scripts source: debian-watch-file-in-native-package
 W: maintainer-scripts source: debian-watch-file-should-mangle-version line 11
 W: maintainer-scripts source: debian-watch-file-should-mangle-version line 7
-W: maintainer-scripts source: debian-watch-file-unknown-version 4
+W: maintainer-scripts source: debian-watch-file-unknown-version 5
 W: maintainer-scripts source: dfsg-version-in-native-package 7+dfsg-0.1
 W: maintainer-scripts source: dm-upload-allowed-is-obsolete
 W: maintainer-scripts source: qa-upload-has-incorrect-version-number 7+dfsg-0.1
-- 
2.6.4

Reply via email to