[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Remaining .dhelp files prevent directory removing on purge

On Thu, Jan 31, 2002 at 01:44:34PM -0500, Peter S Galbraith wrote:
> I have a package (gri-html-doc) which used to provide documentation in
> /usr/share/doc/gri-html-doc/html/ and I have sinced moved the docs to
> /usr/share/doc/gri/html/.
> Upon upgrading from one version to the other, I get the warning:
> dpkg: warning - unable to delete old file `/usr/share/doc/gri-html-doc/html':
>  Directory not empty
> That directory contains the old .dhelp file, which I didn't create; I
> use a doc-base file.
> Was I suppose to delete /usr/share/doc/gri-html-doc/html/.dhelp
> in my old package's prerm?
> Since it's too late to do that, do I delete it and the html directory
> (if empty) in the new package's preinst?  Or even in the postinst?

For this reason with doc-html-w3 I added a

find /usr/share/doc/doc-html-w3 -name .dhelp -exec rm -f {} \;

in prerm. This works for me.

Francesco P. Lovergine

Reply to: