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

one more xs-python-version case related fix

parent 49b35a87
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ python-defaults (2.7.2-11) UNRELEASED; urgency=low
- Add appropriage Breaks/Replaces
[ Piotr Ożarowski ]
* dh_python2: make comparison of X(S)-Python-Version field names
* dh_python2, pyversions: make comparison of X(S)-Python-Version field names
case-insensitive (Closes: #676224)
-- Scott Kitterman <scott@kitterman.com> Wed, 16 May 2012 14:58:09 -0400
......
......@@ -261,12 +261,12 @@ def extract_pyversion_attribute(fn, pkg):
section = 'Source'
elif line.startswith('Package: ' + pkg):
section = pkg
elif line.startswith('XS-Python-Version:') or line.startswith('X-Python-Version:'):
elif line.lower().startswith(('xs-python-version:', 'x-python-version:')):
if section != 'Source':
raise ValueError, \
'attribute X(S)-Python-Version not in Source section'
sversion = line.split(':', 1)[1].strip()
elif line.startswith('XB-Python-Version:'):
elif line.lower().startswith('xb-python-version:'):
if section == pkg:
version = line.split(':', 1)[1].strip()
if section == None:
......
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