[Reproducible-builds] [dh-python] 32/183: fix setting interpreter.debug

Jérémy Bobbio lunar at moszumanska.debian.org
Fri Sep 19 15:30:16 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 af589007a250d9676428d74948229f8eefc86107
Author: Piotr Ożarowski <piotr at debian.org>
Date:   Wed Jul 3 18:34:35 2013 +0200

    fix setting interpreter.debug
---
 dh_python2 | 3 +--
 dh_python3 | 5 ++---
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/dh_python2 b/dh_python2
index 41dd2e0..9b28cff 100755
--- a/dh_python2
+++ b/dh_python2
@@ -391,8 +391,7 @@ def main():
                 options.arch is True and pdetails['arch'] == 'all':
             continue
         log.debug('processing package %s...', package)
-        if package.endswith('-dbg'):
-            interpreter.debug = True
+        interpreter.debug = package.endswith('-dbg')
 
         if not private_dir:
             try:
diff --git a/dh_python3 b/dh_python3
index 514c637..8236300 100755
--- a/dh_python3
+++ b/dh_python3
@@ -155,14 +155,13 @@ def main():
     if not options.vrange and dh.python_version:
         options.vrange = VersionRange(dh.python_version)
 
-    interpreter = Interpreter('python')
+    interpreter = Interpreter('python3')
     for package, pdetails in dh.packages.items():
         if options.arch is False and pdetails['arch'] != 'all' or \
                 options.arch is True and pdetails['arch'] == 'all':
             continue
         log.debug('processing package %s...', package)
-        if package.endswith('-dbg'):
-            interpreter.debug = True
+        interpreter.debug = package.endswith('-dbg')
 
         if not private_dir:
             fix_locations(package, interpreter, SUPPORTED)

-- 
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