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

dh_python2: fix parsing "XS-Python-Version: X.Y"

parent 98a357bc
No related branches found
No related tags found
No related merge requests found
python-defaults (2.6.5-4) UNRELEASED; urgency=low
* dh_python2: fix parsing "XS-Python-Version: X.Y"
-- Piotr Ożarowski <piotr@debian.org> Fri, 18 Jun 2010 16:52:21 +0200
python-defaults (2.6.5-3) unstable; urgency=low
* Remove '-V' option from pyclean call in runtime.d/public_modules.rtremove
......
......@@ -124,6 +124,8 @@ def parse_pycentral_vrange(value):
((2, 4), None)
>>> parse_pycentral_vrange('all, << 3.0')
(None, (3, 0))
>>> parse_pycentral_vrange('2.6')
((2, 6), (2, 6))
"""
get = lambda x: get_requested_versions(parse_vrange(x))
......@@ -149,7 +151,7 @@ def parse_pycentral_vrange(value):
continue
match = re.match('^[\d\.]+$', item)
if match:
ver = "%.3s" % match.group(1)
ver = "%.3s" % match.group(0)
return getver(ver), getver(ver)
if current:
......
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