tag 301786 patch
thanks

Here's a simple patch to make it use find instead of symlinks. It takes
advantage of fine -follow exiting nonzero if it encounters a broken
link.

-- 
see shy jo
diff -ur old/docbook-4.3/debian/control docbook-4.3/debian/control
--- old/docbook-4.3/debian/control      2005-03-31 13:06:04.000000000 -1000
+++ docbook-4.3/debian/control  2005-03-31 13:03:04.000000000 -1000
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Adam Di Carlo <[EMAIL PROTECTED]>
 Standards-Version: 3.5.8
-Build-Depends-Indep: debhelper (>= 4.1.31), symlinks
+Build-Depends-Indep: debhelper (>= 4.1.31)
 
 Package: docbook
 Architecture: all
diff -ur old/docbook-4.3/debian/rules docbook-4.3/debian/rules
--- old/docbook-4.3/debian/rules        2005-03-31 13:06:04.000000000 -1000
+++ docbook-4.3/debian/rules    2005-03-31 13:05:56.000000000 -1000
@@ -52,8 +52,7 @@
        find docbk* -name '*.txt' | xargs dh_installdocs
 
 #       check for bad links
-       DANGLING=`symlinks -r $(PREFIX) | grep dangling | wc -l` ;\
-       if [ $${DANGLING} -ne 0 ]; then exit 1; fi
+       find $(PREFIX) -type l -follow >/dev/null # exits 1 on broken links
 
        dh_compress -i
 

Attachment: signature.asc
Description: Digital signature

Reply via email to