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

Replace /usr/bin/dh_python2 with a shell script

that invokes dh-python's dh_python2 if debian/control mentions dh-python
parent fbcdca0d
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,8 @@ install-dev:
$(DESTDIR)$(PREFIX)/share/perl5/Debian/Debhelper/Sequence/
$(INSTALL) -m 755 runtime.d/* $(DESTDIR)$(PREFIX)/share/python/runtime.d/
$(INSTALL) -m 644 autoscripts/* $(DESTDIR)$(PREFIX)/share/debhelper/autoscripts/
$(INSTALL) -m 755 dh_python2 $(DESTDIR)$(PREFIX)/bin/
$(INSTALL) -m 755 dh_python2 $(DESTDIR)$(PREFIX)/share/python/
$(INSTALL) -m 755 dh_python2.sh $(DESTDIR)$(PREFIX)/bin/dh_python2
$(INSTALL) -m 644 python2.pm $(DESTDIR)$(PREFIX)/share/perl5/Debian/Debhelper/Sequence/
install-runtime:
......
python-defaults (2.7.5-3) UNRELEASED; urgency=low
[ Matthias Klose ]
* Fix libpython-all-dbg doc dir symlink. Closes: #712270.
[ Piotr Ożarowski ]
* Replace /usr/bin/dh_python2 with a shell script that invokes
dh-python's dh_python2 if debian/control mentions dh-python
-- Matthias Klose <doko@debian.org> Mon, 17 Jun 2013 11:09:36 +0200
python-defaults (2.7.5-2) unstable; urgency=low
......
......@@ -32,7 +32,6 @@ from os.path import isabs, isdir, islink, exists, join, normpath, realpath,\
split
from shutil import rmtree, copy as fcopy
from stat import ST_MODE, S_IXUSR, S_IXGRP, S_IXOTH
sys.path.insert(1, '/usr/share/python/')
from debpython.debhelper import DebHelper
from debpython.depends import Dependencies
from debpython.version import SUPPORTED, DEFAULT, \
......
#! /bin/sh
if [ -f /usr/share/dh-python/dh_python2 ] &&\
grep -q dh-python ./debian/control 2>/dev/null
then
exec /usr/share/dh-python/dh_python2 $@
else
exec /usr/share/python/dh_python2 $@
fi
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