[Python-modules-team] Bug#814622: Bug#814622: python3-pytest: modifies shipped files: /usr/bin/py.test-3.[45]
Brian May
bam at debian.org
Sat Feb 13 23:10:31 UTC 2016
Andreas Beckmann <anbe at debian.org> writes:
> during a test with piuparts I noticed your package modifies files it
> ships in /usr. This is so wrong, I'm not even bothered to look
> up the part of policy this violates ;-P
>From python3-pytest.postinst:
case "$1" in
configure|abort-upgrade|abort-remove|abort-deconfigure)
# Just in case, recreate all scripts
for version in `py3versions -vi`; do
if [ $version ]; then
cp /usr/bin/py.test-3 /usr/bin/py.test-$version
sed -i "s,#! */usr/bin/python3,#!/usr/bin/python$version," "/usr/bin/py.test-$version"
fi
done
;;
This should be done at build time in debian/rules, not at install time.
--
Brian May <bam at debian.org>
More information about the Python-modules-team
mailing list