Skip to content
Snippets Groups Projects
Commit 71ff48ea authored by Piotr Ożarowski's avatar Piotr Ożarowski
Browse files

dh_python2: do not try to add python2.X dependency if private dir works

with all Python versions
parent 55e36c63
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,8 @@ python-defaults (2.7.2-10) unstable; urgency=low
[ Piotr Ożarowski ]
* pycompile: fix -O option
* dh_python2: do not try to add python2.X dependency if private dir works
with all Python versions
-- Matthias Klose <doko@debian.org> Tue, 24 Jan 2012 11:49:24 +0100
......
......@@ -143,7 +143,9 @@ class Dependencies(object):
# are scripts for different Python versions: compile with
# default Python version (or the one requested via X-P-V)
args += "-V %s" % vrange_str(vr)
if vr[0] == vr[1]:
if vr == (None, None):
pass
elif vr[0] == vr[1]:
self.depend("python%s" % vrepr(vr[0]))
else:
if vr[0]: # minimum version specified
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment