package open-vm-tools
reopen 516355
severity 516355 normal
thanks

On Wed, Mar 18, 2009 at 11:37:43PM +0100, Daniel Baumann wrote:
> > Is it possible to reduce this to one re-generation?
> according to my understanding of how maintainer scripts works, this is
> unfortunately not possible.

Of course this is possible.
Would you have started building your package with dh_make's example
scripts (i.e. /usr/share/debhelper/dh_make/debian/post{inst,rm}.ex) or
would you have read the Debian Policy Manual (6.5 and/or 6.6), your
"understanding of how maintainer scripts work" would probably not have
lead to crippled scripts.

The double-build happens because you *always* run update-initramfs in
postrm, not only in the postrm remove stage. Thus it is also run in the
postrm upgrade stage (and postrm purge, and all the postrm fail/abort
stages).

Btw... updating *all* initram-images instead of just the actual one is
usually considered bad and dangerous style (see #439334 for example):
If your (or another's) package in a new version builds broken
initram-images which are unable to boot, by always updating all
initram-images you effectively prevent the admin from booting an old
kernel with a still working (because usually not updated) initram-image.


regards
   Mario
-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

Attachment: signature.asc
Description: Digital signature

Reply via email to