On 24.04.2013 20:42, Andreas Beckmann wrote:
during a test with piuparts I noticed your package fails to upgrade
from
'squeeze'.
It installed fine in 'squeeze', then the upgrade to 'wheezy' fails.
There's something odd happening here.
From the attached log (scroll to the bottom...):
Preparing to replace tessa 0.3.1-4+b4 (using
.../tessa_0.3.1-6+b1_amd64.deb) ...
/var/lib/dpkg/info/tessa.prerm: 6: update-python-modules: not found
dpkg: warning: subprocess old pre-removal script returned error
exit status 127
The "old" script says:
#!/bin/sh
set -e
# Automatically added by dh_pysupport
if which update-python-modules >/dev/null 2>&1; then
update-python-modules -c tessa.public
fi
# End automatically added section
So u-p-m should only be being called if it exists.
dpkg: trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/prerm: 12: pyclean: not found
dpkg: error processing
/var/cache/apt/archives/tessa_0.3.1-6+b1_amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 127
configured to not write apport reports
/var/lib/dpkg/info/tessa.postinst: 6: update-python-modules: not
found
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit
status 127
Similarly the "new "script:
#!/bin/sh
set -e
# Automatically added by dh_python2:
if which pyclean >/dev/null 2>&1; then
pyclean -p tessa
else
dpkg -L tessa | grep \.py$ | while read file
do
rm -f "${file}"[co] >/dev/null
done
fi
# End automatically added section
Regards,
Adam
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org