From 6a699ff64ac09113b78f04949332efd53864d0c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20O=C5=BCarowski?= <piotr@debian.org> Date: Thu, 15 Sep 2011 21:06:34 +0200 Subject: [PATCH] add python to Depends if unversioned python shebang is detected in private directory --- debian/changelog | 4 +++- debpython/depends.py | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index d8ebe29..a230f30 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 diff --git a/debpython/depends.py b/debpython/depends.py index 5899d5d..d025af0 100644 --- a/debpython/depends.py +++ b/debpython/depends.py @@ -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) -- GitLab