summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog9
-rwxr-xr-xdh_installdocs5
2 files changed, 13 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index a1dbb0f..344bc54 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+debhelper (2.0.59) unstable; urgency=low
+
+ * dh_installdocs: if $TMP/usr/share/doc/$PACKAGE is a broken symlink,
+ leaves it alone, assumming that the maintainer knows what they're doing
+ and is probably linking to the doc dir of another package.
+ (Closes: #46183)
+
+ -- Joey Hess <joeyh@master.debian.org> Mon, 4 Oct 1999 16:27:28 -0700
+
debhelper (2.0.58) unstable; urgency=low
* Dh_Lib.pm: fixed bug in xargs() that made boundry words be skipped.
diff --git a/dh_installdocs b/dh_installdocs
index a94a514..cc5e00a 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");
}