Bug#949065: lintian: patch to use python2 instead of python

2020-01-18 Thread Chris Lamb
tags 949065 + pending
thanks

Applied in Git with your "Author" and my Signed-Off:

  
https://salsa.debian.org/lintian/lintian/commit/6afaa82ed230041213527908f83a6c56caea691f

  debian/control | 2 +-
  t/tags/checks/cruft/cruft-general-upstream/build-spec/pre-upstream | 4 ++--
  t/tags/checks/java/cruft-general-upstream/build-spec/pre-upstream  | 4 ++--
  3 files changed, 5 insertions(+), 5 deletions(-)


Best wishes,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-



Bug#949065: lintian: patch to use python2 instead of python

2020-01-16 Thread Gianfranco Costamagna
Source: lintian
Version: 2.45.0
Severity: important
Tags: patch
Hello, with python being removed shortly, the following patch makes lintian 
build with the new python2 package


--- lintian-2.45.0/debian/changelog 2020-01-13 13:23:40.0 +0100
+++ lintian-2.45.1/debian/changelog 2020-01-16 16:56:24.0 +0100
@@ -1,3 +1,9 @@
+lintian (2.45.1) UNRELEASED; urgency=medium
+
+  * Depend and run tests with python2 (Closes: #-1)
+
+ -- Gianfranco Costamagna   Thu, 16 Jan 2020 
16:56:24 +0100
+
 lintian (2.45.0) unstable; urgency=medium
 
   * Summary of tag changes:
diff -Nru lintian-2.45.0/debian/control lintian-2.45.0ubuntu1/debian/control
--- lintian-2.45.0/debian/control   2020-01-13 13:23:40.0 +0100
+++ lintian-2.45.1/debian/control   2020-01-16 16:56:22.0 +0100
@@ -81,7 +81,7 @@
  perl ,
  pkg-js-tools ,
  pkg-php-tools ,
- python ,
+ python2 ,
  python-all-dev ,
  python-numpy ,
  python3-docutils,
diff -Nru 
lintian-2.45.0/t/tags/checks/cruft/cruft-general-upstream/build-spec/pre-upstream
 
lintian-2.45.0ubuntu1/t/tags/checks/cruft/cruft-general-upstream/build-spec/pre-upstream
--- 
lintian-2.45.0/t/tags/checks/cruft/cruft-general-upstream/build-spec/pre-upstream
   2020-01-13 13:23:40.0 +0100
+++ 
lintian-2.45.1/t/tags/checks/cruft/cruft-general-upstream/build-spec/pre-upstream
   2020-01-16 16:56:10.0 +0100
@@ -47,8 +47,8 @@
 echo '' > "${dir}/fake.py"
 echo 'import fake' > "${dir}/main.py"
 unset PYTHONDONTWRITEBYTECODE
-PYTHONPATH="${dir}" python "${dir}/main.py" > /dev/null
-PYTHONPATH="${dir}" python -O "${dir}/main.py"  > /dev/null
+PYTHONPATH="${dir}" python2 "${dir}/main.py" > /dev/null
+PYTHONPATH="${dir}" python2 -O "${dir}/main.py"  > /dev/null
 rm -f "${dir}"/main.py*
 
 zip -q "${dir}/fake.jar" "${dir}/fake.min.js"
diff -Nru 
lintian-2.45.0/t/tags/checks/java/cruft-general-upstream/build-spec/pre-upstream
 
lintian-2.45.0ubuntu1/t/tags/checks/java/cruft-general-upstream/build-spec/pre-upstream
--- 
lintian-2.45.0/t/tags/checks/java/cruft-general-upstream/build-spec/pre-upstream
2020-01-13 13:23:40.0 +0100
+++ 
lintian-2.45.1/t/tags/checks/java/cruft-general-upstream/build-spec/pre-upstream
2020-01-16 16:56:00.0 +0100
@@ -47,8 +47,8 @@
 echo '' > "${dir}/fake.py"
 echo 'import fake' > "${dir}/main.py"
 unset PYTHONDONTWRITEBYTECODE
-PYTHONPATH="${dir}" python "${dir}/main.py" > /dev/null
-PYTHONPATH="${dir}" python -O "${dir}/main.py"  > /dev/null
+PYTHONPATH="${dir}" python2 "${dir}/main.py" > /dev/null
+PYTHONPATH="${dir}" python2 -O "${dir}/main.py"  > /dev/null
 rm -f "${dir}"/main.py*
 
 zip -q "${dir}/fake.jar" "${dir}/fake.min.js"