summaryrefslogtreecommitdiff
path: root/dh_installchangelogs
diff options
context:
space:
mode:
Diffstat (limited to 'dh_installchangelogs')
-rwxr-xr-xdh_installchangelogs5
1 files changed, 5 insertions, 0 deletions
diff --git a/dh_installchangelogs b/dh_installchangelogs
index 89b6ff6b..e14eba68 100755
--- a/dh_installchangelogs
+++ b/dh_installchangelogs
@@ -36,6 +36,11 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
}
if (! -d "$TMP/usr/share/doc/$PACKAGE") {
+ # If it is a dangling symlink, then don't do anything.
+ # Think multi-binary packages that depend on each other and
+ # want to link doc dirs.
+ next if -l "$TMP/usr/share/doc/$PACKAGE";
+
doit("install","-d","$TMP/usr/share/doc/$PACKAGE");
}
doit("install","-o",0,"-g",0,"-p","-m644",$changelog,