]> git.donarmstrong.com Git - debhelper.git/commitdiff
r291: * dh_installdocs: if $TMP/usr/share/doc/$PACKAGE is a broken symlink,
authorjoey <joey>
Mon, 4 Oct 1999 23:35:09 +0000 (23:35 +0000)
committerjoey <joey>
Mon, 4 Oct 1999 23:35:09 +0000 (23:35 +0000)
     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)

debian/changelog
dh_installdocs

index a1dbb0f0250fbf64a862c7dcf763aae3aacc5a31..344bc542818ed50707b6868acdb9cddc50838f64 100644 (file)
@@ -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.
index a94a514253e30ec98dfecc363f0d8053e1b9b0ad..cc5e00a97e3be3a99abd5fdb702072bf118edfe3 100755 (executable)
@@ -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");
        }