[Reproducible-builds] [dh-python] 160/183: test203: test python2.7 only if python2.6 is not installed

Jérémy Bobbio lunar at moszumanska.debian.org
Fri Sep 19 15:30:33 UTC 2014


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

lunar pushed a commit to branch pu/reproducible_builds
in repository dh-python.

commit a3efd9fadfeeb826f27e60b3569eb37eb08c8065
Author: Piotr Ożarowski <piotr at debian.org>
Date:   Mon Jan 27 23:15:52 2014 +0100

    test203: test python2.7 only if python2.6 is not installed
---
 debian/changelog        | 2 ++
 tests/t203/debian/rules | 4 ++++
 2 files changed, 6 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 7441c1a..cb56321 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,8 @@ dh-python (1.20131021-2) UNRELEASED; urgency=low
   * Mention in pybuild's manpage that disabling anything for python3 doesn't
     disable python3-dbg as well (closes: 735899)
   * pybuild's distutils build plugin: set install-scripts to /usr/bin by default
+  * Test Python 2.7 only in test203 if /usr/bin/python2.6 is missing
+    (closes: 727674)
 
  -- Piotr Ożarowski <piotr at debian.org>  Tue, 05 Nov 2013 22:57:20 +0100
 
diff --git a/tests/t203/debian/rules b/tests/t203/debian/rules
index 1753174..b5c794f 100755
--- a/tests/t203/debian/rules
+++ b/tests/t203/debian/rules
@@ -1,5 +1,9 @@
 #!/usr/bin/make -f
 DPY=$(DEBPYTHON_DEFAULT)
+ifeq (,$(wildcard /usr/bin/python2.6))
+	# /usr/bin/python2.6 is not available, test 2.7 only
+export DEBPYTHON_SUPPORTED=2.7
+endif
 %:
 	dh $@ --buildsystem=python_distutils
 

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



More information about the Reproducible-builds mailing list