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
af27c4e1
Commit
af27c4e1
authored
14 years ago
by
Piotr Ożarowski
Browse files
Options
Downloads
Patches
Plain Diff
fix checking shebangs in private directories (executable bit wasn't
checked correctly)
parent
7091ee17
No related branches found
Branches containing commit
Tags
debian/2.6.6-9
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
debian/changelog
+2
-0
2 additions, 0 deletions
debian/changelog
dh_python2
+1
-1
1 addition, 1 deletion
dh_python2
with
3 additions
and
1 deletion
debian/changelog
+
2
−
0
View file @
af27c4e1
...
@@ -8,6 +8,8 @@ python-defaults (2.6.6-11) UNRELEASED; urgency=low
...
@@ -8,6 +8,8 @@ python-defaults (2.6.6-11) UNRELEASED; urgency=low
- replace a file with a symlink also if there's a matching one in
- replace a file with a symlink also if there's a matching one in
pyshared directory already
pyshared directory already
- add support for DH_OPTIONS env. variable
- add support for DH_OPTIONS env. variable
- fix checking shebangs in private directories (executable bit wasn't
checked correctly)
* pycompile:
* pycompile:
- --exclude now works with private dirs
- --exclude now works with private dirs
- use /usr/bin/pythonX.Y rather than pythonX.Y (to avoid /usr/local
- use /usr/bin/pythonX.Y rather than pythonX.Y (to avoid /usr/local
...
...
This diff is collapsed.
Click to expand it.
dh_python2
+
1
−
1
View file @
af27c4e1
...
@@ -373,7 +373,7 @@ def scan(package, dname=None):
...
@@ -373,7 +373,7 @@ def scan(package, dname=None):
elif
private_dir
:
elif
private_dir
:
mode
=
os
.
stat
(
join
(
root
,
fn
))[
ST_MODE
]
mode
=
os
.
stat
(
join
(
root
,
fn
))[
ST_MODE
]
if
mode
is
S_IXUSR
or
mode
is
S_IXGRP
or
mode
is
S_IXOTH
:
if
mode
&
S_IXUSR
or
mode
&
S_IXGRP
or
mode
&
S_IXOTH
:
res
=
shebang2pyver
(
join
(
root
,
fn
))
res
=
shebang2pyver
(
join
(
root
,
fn
))
if
res
:
if
res
:
r
[
'
private_dirs
'
].
setdefault
(
private_dir
,
{})
\
r
[
'
private_dirs
'
].
setdefault
(
private_dir
,
{})
\
...
...
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