[Piuparts-devel] Bug#403648: New test: Try unpack, then remove?

Andreas Beckmann debian at abeckmann.de
Wed Aug 1 19:19:59 UTC 2012


Hmm,

I just ran into something similar:

dpkg -i some.deb
- can't configure due to missing depedencies
- postinst is not run -> the debconf templates are not registered
dpkg -r some
- postrm calls db_get but the template does not exist, so script fails
with error 10, package is not removed

so we really should test unpack-remove-purge


what is the correct solution for the maintainer script anyway?
db_get || true  <== may hide some other errors


Andreas



More information about the Piuparts-devel mailing list