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
e2ea6d90
Commit
e2ea6d90
authored
13 years ago
by
Piotr Ożarowski
Browse files
Options
Downloads
Patches
Plain Diff
warn if both XS-Python-Version and X-Python-Version are defined
parent
4d0051cb
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
-0
1 addition, 0 deletions
debian/changelog
debpython/debhelper.py
+10
-2
10 additions, 2 deletions
debpython/debhelper.py
with
11 additions
and
2 deletions
debian/changelog
+
1
−
0
View file @
e2ea6d90
...
...
@@ -19,6 +19,7 @@ python-defaults (2.7.2-2) UNRELEASED; urgency=low
(closes: 630502, thanks to Gediminas Paulauskas for the original patch)
- warn if public Python extension is linked to libpython2.X, fail if it's
linked to a wrong version
- warn if both XS-Python-Version and X-Python-Version are defined
-- Piotr Ożarowski <piotr@debian.org> Sun, 12 Jun 2011 13:28:48 +0200
...
...
This diff is collapsed.
Click to expand it.
debpython/debhelper.py
+
10
−
2
View file @
e2ea6d90
...
...
@@ -41,6 +41,7 @@ class DebHelper(object):
log
.
error
(
'
cannot find debian/control file
'
)
exit
(
15
)
xspv
=
xpv
=
False
for
line
in
fp
:
if
not
line
.
strip
():
source_section
=
False
...
...
@@ -74,10 +75,17 @@ class DebHelper(object):
elif
line
.
startswith
(
'
Source:
'
):
self
.
source_name
=
line
[
7
:].
strip
()
elif
source_section
:
if
line
.
startswith
(
'
XS-Python-Version:
'
)
and
not
self
.
python_version
:
self
.
python_version
=
line
[
18
:].
strip
()
if
line
.
startswith
(
'
XS-Python-Version:
'
):
xspv
=
True
if
not
self
.
python_version
:
self
.
python_version
=
line
[
18
:].
strip
()
if
line
.
startswith
(
'
X-Python-Version:
'
):
xpv
=
True
self
.
python_version
=
line
[
17
:].
strip
()
if
xspv
and
xpv
:
log
.
error
(
'
Please remove XS-Python-Version from debian/control
'
)
log
.
debug
(
'
source=%s, binary packages=%s
'
,
self
.
source_name
,
\
self
.
packages
.
keys
())
...
...
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