The regex for maintainer-script-switches-dir-to-symlink-unsafely seems
far too broad, and I don't know why doc is even relevant here.
The regex: ln[ ]*-f?s.*doc
Note that this tag was previously enabled in bug #917567, and reverted
due to nuisance false positives, I assume it should not have been
re-enabled again.
I would recommend reverting be114d99beec08a28d2501e59a01f451591fd8e2
I ran into this in debusine-server which has this in its postinst:
if [ "$RET" = "nginx" ] && [ -d /etc/nginx/sites-enabled ]; then
ln -s /usr/share/doc/debusine-server/examples/nginx-vhost.conf /etc/nginx/sites-enabled/
debusine-server || true
ln -s /usr/share/doc/debusine-server/examples/nginx-vhost-deb.conf /etc/nginx/sites-enabled/debusine-server || true
Obviously a false positive here.
maintainer-script-switches-dir-to-symlink-unsafely "ln -s /usr/share/doc" [postinst:95]
maintainer-script-switches-dir-to-symlink-unsafely "ln -s /usr/share/doc" [postinst:96]
Stefano