Hi Bastien, On Mon, 15 Sep 2014 20:28:54 +0200, Bastien ROUCARIES <roucaries.bast...@gmail.com> wrote: > Le 14 sept. 2014 16:21, "Stephen Kitt" <sk...@debian.org> a écrit : > > Upgrading argyll does reveal a real problem though... Given that you're > > shipping all the documentation in argyll-doc, and symlinking from the > other > > two packages, you need to replace the old directories with symlinks, using > > something like this in argyll's postinst: > > Argggg please use dpkg-maintainer-script-helper....
Ah right, thanks, the last time I checked dpkg-maintscript-helper didn't handle this case. Jörg, it's dpkg-maintscript-helper dir_to_symlink... > > # Replace documentation directory with symlink > > if [ -d /usr/share/doc/argyll ] && [ ! -L /usr/share/doc/argyll ]; then > > if rmdir /usr/share/doc/argyll 2>/dev/null; then > > ln -sf argyll-doc /usr/share/doc/argyll > > fi > > fi > > You forget some case... buggy Did you check what Jörg actually implemented? Not that it matters really, d-m-h is the right way to do this. Regards, Stephen
signature.asc
Description: PGP signature