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