Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
python-defaults
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pkg
python-defaults
Commits
d07a2172
Commit
d07a2172
authored
12 years ago
by
Piotr Ożarowski
Browse files
Options
Downloads
Patches
Plain Diff
one more xs-python-version case related fix
parent
49b35a87
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
debian/changelog
+1
-1
1 addition, 1 deletion
debian/changelog
debian/pyversions.py
+2
-2
2 additions, 2 deletions
debian/pyversions.py
with
3 additions
and
3 deletions
debian/changelog
+
1
−
1
View file @
d07a2172
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
debian/pyversions.py
+
2
−
2
View file @
d07a2172
...
...
@@ -261,12 +261,12 @@ def extract_pyversion_attribute(fn, pkg):
section
=
'
Source
'
elif
line
.
startswith
(
'
Package:
'
+
pkg
):
section
=
pkg
elif
line
.
startswith
(
'
XS-P
ython-
V
ersion:
'
)
or
line
.
startswith
(
'
X-P
ython-
V
ersion:
'
):
elif
line
.
lower
().
startswith
(
(
'
xs-p
ython-
v
ersion:
'
,
'
x-p
ython-
v
ersion:
'
)
)
:
if
section
!=
'
Source
'
:
raise
ValueError
,
\
'
attribute X(S)-Python-Version not in Source section
'
sversion
=
line
.
split
(
'
:
'
,
1
)[
1
].
strip
()
elif
line
.
startswith
(
'
XB-P
ython-
V
ersion:
'
):
elif
line
.
lower
().
startswith
(
'
xb-p
ython-
v
ersion:
'
):
if
section
==
pkg
:
version
=
line
.
split
(
'
:
'
,
1
)[
1
].
strip
()
if
section
==
None
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment