Comment 2 for bug 1054442

Revision history for this message
Mitsuya Shibata (cosmos-door) wrote :

/usr/share/python/pyversions.py is included in python-minimal.

Ubuntu package:
- make symbolic link /usr/bin/pyversions to pyversions.py in package of "python" (see debian/rules).
- remove /usr/share/python/*.py[co] at prerm of "python-minimal".
- remove /usr/share/python/pyversions.py[co] at prerm only with "remove" state of "python".
- debootstrap install "python-minimal" in base.tgz, therefore python-minimal.prerm is *not* executed in piuparts.

Ubuntu package:
- make symbolic link /usr/bin/pyversions to pyversions.py in package of "python-minimal" (see debian/rules).
- remove /usr/share/python/*.py[co] at prerm of "python-minimal".
- remove /usr/share/python/pyversions.py[co] at prerm only with "remove" state of "python".
- debootstrap *does not* install "python-minimal" in base.tgz, therefore python-minimal.prerm is executed in piuparts.

lp:~cosmos-door/ubuntu/quantal/python-defaults/fix-for-1054442
is remove /usr/share/python/pyversions.py[co] with purge option same as "apt-get remove".