Package: piuparts
Version: 0.16-1
Severity: wishlist
Hi,
Recently, I found a bug in a preinst script that failed when it
was in "config files only" state.
The problem was that the preinst script checked for a $2, and
assumed that it was an upgrade, while it can also be an install
(or even an abort-upgrade).
The policy says that the preinst can be called in those ways:
* <new-preinst> `install'
* <new-preinst> `install' <old-version>
* <new-preinst> `upgrade' <old-version>
* <old-preinst> `abort-upgrade' <new-version>
Where the first is an install with nothing installed yet,
the 2nd is an where config files from a previous version exist
but isn't installed, and the 3rd is an upgrade. And the last one
is error handling thing.
Kurt
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]