From 71d06996481c6187b016c3b14b7e9faaf8adc432 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 15 Aug 2013 20:14:44 +0200 Subject: dh_install, dh_installdocs, dh_clean: Fix uses of find -exec which cause it to ignore exit status of the commands run. --- dh_installdocs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dh_installdocs') diff --git a/dh_installdocs b/dh_installdocs index f0b5c5e2..c516a571 100755 --- a/dh_installdocs +++ b/dh_installdocs @@ -213,7 +213,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { my $dir = ($basename eq '.') ? $doc : "$doc/.."; my $pwd=`pwd`; chomp $pwd; - complex_doit("cd '$dir' && find '$basename' \\( -type f -or -type l \\)$exclude -exec cp --parents -dp {} $pwd/$tmp/usr/share/doc/$package \\;"); + complex_doit("cd '$dir' && find '$basename' \\( -type f -or -type l \\)$exclude -print0 | xargs -0 -I {} cp --parents -dp {} $pwd/$tmp/usr/share/doc/$package"); } else { doit("cp", "-a", $doc, "$tmp/usr/share/doc/$package"); -- cgit v1.2.3