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

add python to Depends if unversioned python shebang is detected in private directory

parent e4fc8e1b
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,9 @@ python-defaults (2.7.2-6) UNRELEASED; urgency=low
[ Piotr Ożarowski ]
* dh_python2:
- handle private dirs without leading slash
- handle private dir paths without leading slash
- add python to Depends if unversioned python shebang is detected in
private directory
-- Scott Kitterman <scott@kitterman.com> Sat, 03 Sep 2011 11:21:35 -0400
......
......@@ -128,6 +128,9 @@ class Dependencies(object):
else:
log.warn('dependency on python%s (from shebang) ignored'
' - it\'s not supported anymore', vrepr(v))
# /usr/bin/python shebang → add python to Depends
if any(True for i, v in details.get('shebangs', []) if v is None):
self.depend('python')
if details.get('compile', False):
self.depend(MINPYCDEP)
......
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