Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Remaining .dhelp files prevent directory removing on purge

0 views
Skip to first unread message

Peter S Galbraith

unread,
Jan 31, 2002, 1:46:32 PM1/31/02
to

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?

Thanks,
Peter


--
To UNSUBSCRIBE, email to debian-dev...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Josip Rodin

unread,
Feb 1, 2002, 8:04:12 AM2/1/02
to
On Fri, Feb 01, 2002 at 09:13:01AM -0200, Henrique de Moraes Holschuh wrote:
> > > 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.
> [...]
> > 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.
>
> Hmm... how about a wishlist bug against debhelper, to add that to the std.
> #debhelper# section when dh_installdocs detects we might need it?

How about a bug against dhelp to not leave its droppings around...

--
2. That which causes joy or happiness.

Daniel Burrows

unread,
Feb 1, 2002, 9:06:52 AM2/1/02
to
On Fri, Feb 01, 2002 at 02:04:34PM +0100, Josip Rodin <j...@cibalia.gkvk.hr> was heard to say:

> On Fri, Feb 01, 2002 at 09:13:01AM -0200, Henrique de Moraes Holschuh wrote:
> > > > 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.
> > [...]
> > > 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.
> >
> > Hmm... how about a wishlist bug against debhelper, to add that to the std.
> > #debhelper# section when dh_installdocs detects we might need it?
>
> How about a bug against dhelp to not leave its droppings around...

I think someone already tried that :-/

Daniel

--
/----------------- Daniel Burrows <Daniel_...@brown.edu> -----------------\
| Put no trust in cryptic comments. |
\------------- Debian GNU/Linux http://www.debian.org -- Because. ------------/

Josip Rodin

unread,
Feb 1, 2002, 1:21:24 PM2/1/02
to
On Fri, Feb 01, 2002 at 09:58:01AM -0500, Stefan Hornburg (Racke) wrote:
> > > > > 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.
> > > [...]
> > > > 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.
> > >
> > > Hmm... how about a wishlist bug against debhelper, to add that to the std.
> > > #debhelper# section when dh_installdocs detects we might need it?
> >
> > How about a bug against dhelp to not leave its droppings around...
>
> E.g. #101251. But in woodyland the only way to fix this will be
> a change to dh_installdocs.

Oh, you mean the new dhelp no longer needs .dhelp files, so dh_installdocs
no longer needs to create them?

--
2. That which causes joy or happiness.

0 new messages