[Reproducible-builds] [dh-python] 154/183: dh_python3: add multiarch tuples to all already tagged extensions if when more than one Python 3 version is supported (closes: 733128)

Jérémy Bobbio lunar at moszumanska.debian.org
Fri Sep 19 15:30:32 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 f02f6a1a52acb74e26547a121d3e12b1e9e3a3c1
Author: Piotr Ożarowski <piotr at debian.org>
Date:   Tue Jan 7 22:17:13 2014 +0100

    dh_python3: add multiarch tuples to all already tagged extensions if when more than one Python 3 version is supported (closes: 733128)
---
 debian/changelog        | 2 ++
 dhpython/interpreter.py | 4 ++++
 2 files changed, 6 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index cd4353c..3df1578 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
 dh-python (1.20131021-2) UNRELEASED; urgency=low
 
   * dh_python3, dh_pypy: add support for debian/package.pyremove files
+  * dh_python3: add multiarch tuples to all already tagged extensions if
+    when more than one Python 3 version is supported (closes: 733128)
 
  -- Piotr Ożarowski <piotr at debian.org>  Tue, 05 Nov 2013 22:57:20 +0100
 
diff --git a/dhpython/interpreter.py b/dhpython/interpreter.py
index 2aad6ed..a1b09b9 100644
--- a/dhpython/interpreter.py
+++ b/dhpython/interpreter.py
@@ -426,6 +426,10 @@ class Interpreter:
         if not info:
             return
         info = info.groupdict()
+        if info['ver'] and (not version or version.minor is None):
+            # get version from soabi if version is not set of only major
+            # version number is set
+            version = Version("%s.%s" % (info['ver'][0], info['ver'][1]))
 
         if info['stableabi']:
             # files with stable ABI in name don't need changes

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