On 2016-02-14 10:10:31, Brian May wrote:
> Andreas Beckmann <a...@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.

This cannot be done at build time. This would create unnecessary forced
dependencies on all supported Python 3 version. py.test-3.X is created for each
*installed* Python 3 version and updated using rtupdate scripts.

Including py.test-3.X in the package is the bug.

Cheers
-- 
Sebastian Ramacher

Attachment: signature.asc
Description: PGP signature

Reply via email to