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 4f609572af5d0c5d16d8a6fecad70aaef27482d8 Author: Piotr Ożarowski <pi...@debian.org> Date: Tue Jul 2 21:30:12 2013 +0200 return default version for not versioned public dir --- dhpython/interpreter.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dhpython/interpreter.py b/dhpython/interpreter.py index bf07c29..6ff21d6 100644 --- a/dhpython/interpreter.py +++ b/dhpython/interpreter.py @@ -262,7 +262,11 @@ class Interpreter: """Return version assigned to site-packages path.""" match = PUBLIC_DIR_RE[self.impl].match(path) if match: - return Version(match.groups(0)) + vers = match.groups(0) + if vers: + return Version(vers) + # PyPy is not versioned + return default(self.impl) def should_ignore(self, path): """Return True if path is used by another interpreter implementation.""" @@ -438,4 +442,4 @@ class Interpreter: # due to circular imports issue from dhpython.tools import execute -from dhpython.version import Version +from dhpython.version import Version, default -- 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