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

Re: How to handle FHS conversion?

> Simple question: Is there a canonical way to move the documentation directory
> from /usr/doc to /usr/share/doc? I have converted a small package of mine to
> FHS - I installed the documentation in /usr/share/doc and made a link from
> /usr/doc/package to /usr/share/doc/package. Problem: On upgrade the directory
> /usr/doc/package is still there so dpkg can not make the symlink. 
> I ended up with an empty /usr/doc/package. My current workaround is deleting
> /usr/doc/gnofin in the preinst. Is there a better way?

 Create the link in the postinst. And create it only if the user is
upgrading from a pre-FHX version.

Reply to: