diff options
Diffstat (limited to 'dh_installchangelogs')
-rwxr-xr-x | dh_installchangelogs | 5 |
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, |