summaryrefslogtreecommitdiff
path: root/dh_installdocs
diff options
context:
space:
mode:
Diffstat (limited to 'dh_installdocs')
-rwxr-xr-xdh_installdocs5
1 files changed, 4 insertions, 1 deletions
diff --git a/dh_installdocs b/dh_installdocs
index a94a5142..cc5e00a9 100755
--- a/dh_installdocs
+++ b/dh_installdocs
@@ -13,7 +13,10 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
$TMP=tmpdir($PACKAGE);
$file=pkgfile($PACKAGE,"docs");
- if ( ! -d "$TMP/usr/share/doc/$PACKAGE") {
+ # If this is a dangling symlink, leave it. The maintainer
+ # better know what they're doing.
+ if ( ! -d "$TMP/usr/share/doc/$PACKAGE" &&
+ ! -l "$TMP/usr/share/doc/$PACKAGE") {
doit("install","-d","$TMP/usr/share/doc/$PACKAGE");
}