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 7a52a217388ca52a1a669c758e327708d56b6f9b
Author: Piotr Ożarowski <pi...@debian.org>
Date:   Sat Aug 31 12:51:21 2013 +0200

    no need to check version if default is requested
---
 dhpython/interpreter.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dhpython/interpreter.py b/dhpython/interpreter.py
index 8e75b62..ee2e47d 100644
--- a/dhpython/interpreter.py
+++ b/dhpython/interpreter.py
@@ -152,7 +152,7 @@ class Interpreter:
         version = version or self.version or ''
         if consider_default_ver and version == self.default_version:
             version = '3' if self.impl == 'cpython3' else ''
-        if isinstance(version, Version) and version == Version(major=2):
+        elif isinstance(version, Version) and version == Version(major=2):
             version = ''  # do not promote /usr/bin/python2
         if self.debug:
             return 'python{}-dbg'.format(version)

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

_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to