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

[lintian] 01/01: Add missing example-script-uses-deprecated-nodejs-location tag. (Closes: #877142)



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

lamby pushed a commit to branch master
in repository lintian.

commit ef4404f940b02d3afc76843d9e580ecb3b4e3883
Author: Chris Lamb <lamby@debian.org>
Date:   Sun Oct 1 10:54:22 2017 +0100

    Add missing example-script-uses-deprecated-nodejs-location tag. (Closes: #877142)
---
 checks/scripts.desc                                        | 14 ++++++++++++++
 debian/changelog                                           |  3 +++
 t/tests/scripts-interpreters-nodejs/debian/debian/examples |  2 ++
 t/tests/scripts-interpreters-nodejs/desc                   |  1 +
 t/tests/scripts-interpreters-nodejs/tags                   |  1 +
 5 files changed, 21 insertions(+)

diff --git a/checks/scripts.desc b/checks/scripts.desc
index ff1e161..a9e74cf 100644
--- a/checks/scripts.desc
+++ b/checks/scripts.desc
@@ -784,3 +784,17 @@ Info: You used <tt>/usr/bin/nodejs</tt> or <tt>/usr/bin/env nodejs</tt> as an
  of the Node.js ecosystem.
  .
  Please update your package to use the <tt>node</tt> variant.
+
+Tag: example-script-uses-deprecated-nodejs-location
+Severity: normal
+Certainty: possible
+Info: You used <tt>/usr/bin/nodejs</tt> or <tt>/usr/bin/env nodejs</tt> as an
+ interpreter for an example script.
+ .
+ The <tt>/usr/bin/node</tt> binary was previously provided by
+ <tt>ax25-node</tt> and packages were required to use <tt>/usr/bin/nodejs</tt>
+ instead. This was subsequently repealed by the Technical Committee and the
+ <tt>nodejs</tt> now ships the <tt>/usr/bin/node</tt> binary to match the rest
+ of the Node.js ecosystem.
+ .
+ Please update your package to use the <tt>node</tt> variant.
diff --git a/debian/changelog b/debian/changelog
index 68204e2..56cd3e2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,9 @@ lintian (2.5.55) UNRELEASED; urgency=medium
     + [CL] Also match packages named "python2-*" as relating to Python 2.x.
     + [CL] Warn about Django libraries that do not depend on Django itself.
       (Closes: #877292)
+  * checks/scripts.desc:
+    + [CL] Add missing example-script-uses-deprecated-nodejs-location tag.
+      (Closes: #877142)
 
   * t/tests/python-new-python2-package/*:
     + [CL] Correct Depends of python2.7 → python3 in Python 3 test
diff --git a/t/tests/scripts-interpreters-nodejs/debian/debian/examples b/t/tests/scripts-interpreters-nodejs/debian/debian/examples
new file mode 100644
index 0000000..673fc28
--- /dev/null
+++ b/t/tests/scripts-interpreters-nodejs/debian/debian/examples
@@ -0,0 +1,2 @@
+usr-bin-env-node
+usr-bin-env-nodejs
diff --git a/t/tests/scripts-interpreters-nodejs/desc b/t/tests/scripts-interpreters-nodejs/desc
index 3e45476..0644a84 100644
--- a/t/tests/scripts-interpreters-nodejs/desc
+++ b/t/tests/scripts-interpreters-nodejs/desc
@@ -4,3 +4,4 @@ Description: Check various NodeJS issues
 Test-For:
  missing-dep-for-interpreter
  script-uses-deprecated-nodejs-location
+ example-script-uses-deprecated-nodejs-location
diff --git a/t/tests/scripts-interpreters-nodejs/tags b/t/tests/scripts-interpreters-nodejs/tags
index 6b34252..bf9b84e 100644
--- a/t/tests/scripts-interpreters-nodejs/tags
+++ b/t/tests/scripts-interpreters-nodejs/tags
@@ -1,3 +1,4 @@
 E: scripts-interpreters-nodejs: missing-dep-for-interpreter node => nodejs (usr/bin/usr-bin-env-node)
 E: scripts-interpreters-nodejs: missing-dep-for-interpreter nodejs => nodejs (usr/bin/usr-bin-env-nodejs)
+W: scripts-interpreters-nodejs: example-script-uses-deprecated-nodejs-location usr/share/doc/scripts-interpreters-nodejs/examples/usr-bin-env-nodejs
 W: scripts-interpreters-nodejs: script-uses-deprecated-nodejs-location usr/bin/usr-bin-env-nodejs

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


Reply to: