[lintian] 01/01: Warn if debian/watch uses deprecated githubredir.debian.net scraper

2017-10-08 Thread Chris Lamb
This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch githubredir
in repository lintian.

commit 75bbb02a367409d5a66be300ef7db09ce0d10e89
Author: Chris Lamb 
Date:   Mon Oct 26 22:04:08 2015 +

Warn if debian/watch uses deprecated githubredir.debian.net scraper

Signed-off-by: Chris Lamb 
---
 checks/watch-file.desc | 13 +
 checks/watch-file.pm   |  4 
 t/tests/watch-file-general/debian/debian/watch |  5 -
 t/tests/watch-file-general/desc|  1 +
 t/tests/watch-file-general/tags|  2 ++
 5 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/checks/watch-file.desc b/checks/watch-file.desc
index 1b66da7..1ae2a8a 100644
--- a/checks/watch-file.desc
+++ b/checks/watch-file.desc
@@ -116,6 +116,19 @@ Info: The watch file specifies a SourceForge page or 
download server
  project and tar-name with the name of the tarball
  distributed within that project.  Adjust the filename regex as necessary.
 
+Tag: debian-watch-file-uses-deprecated-githubredir
+Severity: important
+Certainty: certain
+Ref: https://lists.debian.org/debian-devel-announce/2014/10/msg0.html
+Info: The watch file specifies a githubredir.debia.net URL, which is deprecated
+ Instead, use direct links to the tags page:
+ .
+  version=3
+  https://github.com/user/project/tags .*/(.*)\.tar\.gz
+ .
+ replacing user and project with the Github
+ username and project respectfully.
+
 Tag: debian-watch-file-specifies-wrong-upstream-version
 Severity: normal
 Certainty: certain
diff --git a/checks/watch-file.pm b/checks/watch-file.pm
index 46ab633..737c25b 100644
--- a/checks/watch-file.pm
+++ b/checks/watch-file.pm
@@ -122,6 +122,10 @@ sub run {
 if (m,\b\Qhttp://pypi.python.org/\E,) {
 tag 'debian-watch-file-accesses-pypi-over-http', "line $.";
 }
+if (m%githubredir\.debian\.net%) {
+tag 'debian-watch-file-uses-deprecated-githubredir',
+  "line $.";
+}
 
 if (
 m{ (?:https?|ftp)://
diff --git a/t/tests/watch-file-general/debian/debian/watch 
b/t/tests/watch-file-general/debian/debian/watch
index 71b4717..e322710 100644
--- a/t/tests/watch-file-general/debian/debian/watch
+++ b/t/tests/watch-file-general/debian/debian/watch
@@ -26,4 +26,7 @@ http://pypi.python.org/foo scripts\.([\d.]+)\.tar\.gz debian 
uupdate
 # Unsupported PyPI URL.
 https://pypi.python.org/packages/source/p/pip/ pip-(\S+)\.tar\.gz
 
-# without any pgpsigurlmangle
\ No newline at end of file
+# Deprecated githubredir
+http://githubredir.debian.net/github/username/project /(.*).tar.gz
+
+# without any pgpsigurlmangle
diff --git a/t/tests/watch-file-general/desc b/t/tests/watch-file-general/desc
index 64d09c9..0e7a20e 100644
--- a/t/tests/watch-file-general/desc
+++ b/t/tests/watch-file-general/desc
@@ -15,5 +15,6 @@ Test-For:
  debian-watch-file-unknown-version
  debian-watch-file-unsupported-pypi-url
  debian-watch-file-uses-deprecated-sf-redirector-method
+ debian-watch-file-uses-deprecated-githubredir
  debian-watch-may-check-gpg-signature
 References: Debian Bug#510398
diff --git a/t/tests/watch-file-general/tags b/t/tests/watch-file-general/tags
index a80f45b..1c54f22 100644
--- a/t/tests/watch-file-general/tags
+++ b/t/tests/watch-file-general/tags
@@ -1,4 +1,5 @@
 E: watch-file-general source: debian-watch-file-unsupported-pypi-url line 27
+E: watch-file-general source: debian-watch-file-uses-deprecated-githubredir 
line 30
 I: watch-file-general source: debian-watch-file-accesses-pypi-over-http line 24
 I: watch-file-general source: 
debian-watch-file-should-dversionmangle-not-uversionmangle line 5
 P: watch-file-general source: debian-watch-may-check-gpg-signature
@@ -8,6 +9,7 @@ W: watch-file-general source: 
debian-watch-file-should-mangle-version line 12
 W: watch-file-general source: debian-watch-file-should-mangle-version line 14
 W: watch-file-general source: debian-watch-file-should-mangle-version line 15
 W: watch-file-general source: debian-watch-file-should-mangle-version line 27
+W: watch-file-general source: debian-watch-file-should-mangle-version line 30
 W: watch-file-general source: debian-watch-file-should-use-sf-redirector line 
12
 W: watch-file-general source: debian-watch-file-should-use-sf-redirector line 
14
 W: watch-file-general source: debian-watch-file-should-use-sf-redirector line 
15

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



[lintian] 01/01: Warn if debian/watch uses deprecated githubredir.debian.net scraper

2017-08-26 Thread Bastien Roucariès
This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch tmpy
in repository lintian.

commit e60c9ad0259cced3aed5a0984258fa475268bd29
Author: Chris Lamb 
Date:   Sun Jan 3 14:30:20 2016 +0100

Warn if debian/watch uses deprecated githubredir.debian.net scraper

Signed-off-by: Chris Lamb 
---
 checks/watch-file.desc | 13 +
 checks/watch-file.pm   |  4 
 debian/changelog   |  8 ++--
 t/tests/watch-file-general/debian/debian/watch |  5 -
 t/tests/watch-file-general/desc|  1 +
 t/tests/watch-file-general/tags|  2 ++
 6 files changed, 30 insertions(+), 3 deletions(-)

diff --git a/checks/watch-file.desc b/checks/watch-file.desc
index 1b66da7..1ae2a8a 100644
--- a/checks/watch-file.desc
+++ b/checks/watch-file.desc
@@ -116,6 +116,19 @@ Info: The watch file specifies a SourceForge page or 
download server
  project and tar-name with the name of the tarball
  distributed within that project.  Adjust the filename regex as necessary.
 
+Tag: debian-watch-file-uses-deprecated-githubredir
+Severity: important
+Certainty: certain
+Ref: https://lists.debian.org/debian-devel-announce/2014/10/msg0.html
+Info: The watch file specifies a githubredir.debia.net URL, which is deprecated
+ Instead, use direct links to the tags page:
+ .
+  version=3
+  https://github.com/user/project/tags .*/(.*)\.tar\.gz
+ .
+ replacing user and project with the Github
+ username and project respectfully.
+
 Tag: debian-watch-file-specifies-wrong-upstream-version
 Severity: normal
 Certainty: certain
diff --git a/checks/watch-file.pm b/checks/watch-file.pm
index 46ab633..737c25b 100644
--- a/checks/watch-file.pm
+++ b/checks/watch-file.pm
@@ -122,6 +122,10 @@ sub run {
 if (m,\b\Qhttp://pypi.python.org/\E,) {
 tag 'debian-watch-file-accesses-pypi-over-http', "line $.";
 }
+if (m%githubredir\.debian\.net%) {
+tag 'debian-watch-file-uses-deprecated-githubredir',
+  "line $.";
+}
 
 if (
 m{ (?:https?|ftp)://
diff --git a/debian/changelog b/debian/changelog
index 60eafe9..69c6892 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,12 +10,16 @@ lintian (2.5.40) UNRELEASED; urgency=medium
   checks.  Thanks to Aurelien Jarno for the bug report.  (Closes:
   #809262)
 + [BR] Detect old style config script and detect Mutli-arch error.
-  * checks/source-copyright.desc:
+  * checks/source-copyright.{desc,pm}:
 + [JW] Apply patch from Mattia Rizzolo to update the machine-readable
   copyright format specification URL.  (Closes: #809248)
 + [BR] Improve description text of tag
-   dep5-copyright-license-name-not-unique.
+  dep5-copyright-license-name-not-unique.
   (Closes: #809651).
+   * checks/watch-file.{desc,pm}:
++ [BR] Apply patch from Chris Lamb ,
+  warn if debian/watch uses deprecated
+  githubredir.debian.net scraper (Closes: #803106).
 
   * data/spelling/corrections*:
 + [JW] Add more corrections.
diff --git a/t/tests/watch-file-general/debian/debian/watch 
b/t/tests/watch-file-general/debian/debian/watch
index 71b4717..e322710 100644
--- a/t/tests/watch-file-general/debian/debian/watch
+++ b/t/tests/watch-file-general/debian/debian/watch
@@ -26,4 +26,7 @@ http://pypi.python.org/foo scripts\.([\d.]+)\.tar\.gz debian 
uupdate
 # Unsupported PyPI URL.
 https://pypi.python.org/packages/source/p/pip/ pip-(\S+)\.tar\.gz
 
-# without any pgpsigurlmangle
\ No newline at end of file
+# Deprecated githubredir
+http://githubredir.debian.net/github/username/project /(.*).tar.gz
+
+# without any pgpsigurlmangle
diff --git a/t/tests/watch-file-general/desc b/t/tests/watch-file-general/desc
index 64d09c9..0e7a20e 100644
--- a/t/tests/watch-file-general/desc
+++ b/t/tests/watch-file-general/desc
@@ -15,5 +15,6 @@ Test-For:
  debian-watch-file-unknown-version
  debian-watch-file-unsupported-pypi-url
  debian-watch-file-uses-deprecated-sf-redirector-method
+ debian-watch-file-uses-deprecated-githubredir
  debian-watch-may-check-gpg-signature
 References: Debian Bug#510398
diff --git a/t/tests/watch-file-general/tags b/t/tests/watch-file-general/tags
index a80f45b..1c54f22 100644
--- a/t/tests/watch-file-general/tags
+++ b/t/tests/watch-file-general/tags
@@ -1,4 +1,5 @@
 E: watch-file-general source: debian-watch-file-unsupported-pypi-url line 27
+E: watch-file-general source: debian-watch-file-uses-deprecated-githubredir 
line 30
 I: watch-file-general source: debian-watch-file-accesses-pypi-over-http line 24
 I: watch-file-general source: 
debian-watch-file-should-dversionmangle-not-uversionmangle line 5
 P: watch-file-general source: debian-watch-may-check-gpg-signature
@@ -8,6 +9,7 @@ W: watch-file-general source: 

[lintian] 01/01: Warn if debian/watch uses deprecated githubredir.debian.net scraper

2017-08-26 Thread Bastien Roucariès
This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch tmpjj
in repository lintian.

commit 139ed0bef309b9a59c21a503727609731c06d797
Author: Chris Lamb 
Date:   Sun Jan 3 14:30:20 2016 +0100

Warn if debian/watch uses deprecated githubredir.debian.net scraper

Signed-off-by: Chris Lamb 
---
 checks/watch-file.desc | 13 +
 checks/watch-file.pm   |  4 
 debian/changelog   |  2 +-
 t/tests/watch-file-general/debian/debian/watch |  5 -
 t/tests/watch-file-general/desc|  1 +
 t/tests/watch-file-general/tags|  2 ++
 6 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/checks/watch-file.desc b/checks/watch-file.desc
index 1b66da7..1ae2a8a 100644
--- a/checks/watch-file.desc
+++ b/checks/watch-file.desc
@@ -116,6 +116,19 @@ Info: The watch file specifies a SourceForge page or 
download server
  project and tar-name with the name of the tarball
  distributed within that project.  Adjust the filename regex as necessary.
 
+Tag: debian-watch-file-uses-deprecated-githubredir
+Severity: important
+Certainty: certain
+Ref: https://lists.debian.org/debian-devel-announce/2014/10/msg0.html
+Info: The watch file specifies a githubredir.debia.net URL, which is deprecated
+ Instead, use direct links to the tags page:
+ .
+  version=3
+  https://github.com/user/project/tags .*/(.*)\.tar\.gz
+ .
+ replacing user and project with the Github
+ username and project respectfully.
+
 Tag: debian-watch-file-specifies-wrong-upstream-version
 Severity: normal
 Certainty: certain
diff --git a/checks/watch-file.pm b/checks/watch-file.pm
index 46ab633..737c25b 100644
--- a/checks/watch-file.pm
+++ b/checks/watch-file.pm
@@ -122,6 +122,10 @@ sub run {
 if (m,\b\Qhttp://pypi.python.org/\E,) {
 tag 'debian-watch-file-accesses-pypi-over-http', "line $.";
 }
+if (m%githubredir\.debian\.net%) {
+tag 'debian-watch-file-uses-deprecated-githubredir',
+  "line $.";
+}
 
 if (
 m{ (?:https?|ftp)://
diff --git a/debian/changelog b/debian/changelog
index 60eafe9..15bf199 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -14,7 +14,7 @@ lintian (2.5.40) UNRELEASED; urgency=medium
 + [JW] Apply patch from Mattia Rizzolo to update the machine-readable
   copyright format specification URL.  (Closes: #809248)
 + [BR] Improve description text of tag
-   dep5-copyright-license-name-not-unique.
+  dep5-copyright-license-name-not-unique.
   (Closes: #809651).
 
   * data/spelling/corrections*:
diff --git a/t/tests/watch-file-general/debian/debian/watch 
b/t/tests/watch-file-general/debian/debian/watch
index 71b4717..e322710 100644
--- a/t/tests/watch-file-general/debian/debian/watch
+++ b/t/tests/watch-file-general/debian/debian/watch
@@ -26,4 +26,7 @@ http://pypi.python.org/foo scripts\.([\d.]+)\.tar\.gz debian 
uupdate
 # Unsupported PyPI URL.
 https://pypi.python.org/packages/source/p/pip/ pip-(\S+)\.tar\.gz
 
-# without any pgpsigurlmangle
\ No newline at end of file
+# Deprecated githubredir
+http://githubredir.debian.net/github/username/project /(.*).tar.gz
+
+# without any pgpsigurlmangle
diff --git a/t/tests/watch-file-general/desc b/t/tests/watch-file-general/desc
index 64d09c9..0e7a20e 100644
--- a/t/tests/watch-file-general/desc
+++ b/t/tests/watch-file-general/desc
@@ -15,5 +15,6 @@ Test-For:
  debian-watch-file-unknown-version
  debian-watch-file-unsupported-pypi-url
  debian-watch-file-uses-deprecated-sf-redirector-method
+ debian-watch-file-uses-deprecated-githubredir
  debian-watch-may-check-gpg-signature
 References: Debian Bug#510398
diff --git a/t/tests/watch-file-general/tags b/t/tests/watch-file-general/tags
index a80f45b..1c54f22 100644
--- a/t/tests/watch-file-general/tags
+++ b/t/tests/watch-file-general/tags
@@ -1,4 +1,5 @@
 E: watch-file-general source: debian-watch-file-unsupported-pypi-url line 27
+E: watch-file-general source: debian-watch-file-uses-deprecated-githubredir 
line 30
 I: watch-file-general source: debian-watch-file-accesses-pypi-over-http line 24
 I: watch-file-general source: 
debian-watch-file-should-dversionmangle-not-uversionmangle line 5
 P: watch-file-general source: debian-watch-may-check-gpg-signature
@@ -8,6 +9,7 @@ W: watch-file-general source: 
debian-watch-file-should-mangle-version line 12
 W: watch-file-general source: debian-watch-file-should-mangle-version line 14
 W: watch-file-general source: debian-watch-file-should-mangle-version line 15
 W: watch-file-general source: debian-watch-file-should-mangle-version line 27
+W: watch-file-general source: debian-watch-file-should-mangle-version line 30
 W: watch-file-general source: debian-watch-file-should-use-sf-redirector line 
12
 W: watch-file-general source: