[Pkg-pciutils-discuss] testing for upcoming release

Matthew Wilcox matthew at wil.cx
Sun May 7 01:46:03 UTC 2006


On Fri, May 05, 2006 at 12:49:53AM -0700, Matt Taggart wrote:
> 1) When installing,
> 
> Unpacking replacement pciutils ...
> dpkg: warning - unable to delete old directory `/var/lib/pciutils': Directory 
> not empty
> 
> Since we're getting rid of that location, I guess we need to clean that up in 
> the prerm? On my system the offending file was "pci.ids.old", I thought we 
> already had code to get rid of .old files? Hmm, it looks like it's been 
> changed to the /usr/share location, I'll have it clean up the old var location 
> too, sound OK?

Thanks for testing this.  I *think* we need to do it in the 'upgrade'
case of the preinst script rather than the prerm:

http://www.us.debian.org/doc/debian-policy/ch-maintainerscripts.html

Looks to me like (for our case) dpkg will do:

1. old-prerm upgrade
3. new-preinst upgrade
5. old-postrm upgrade
6. Try to remove /var/lib/pciutils

Do you agree?



More information about the Pkg-pciutils-discuss mailing list