diff options
author | Joey Hess <joey@kitenet.net> | 2013-08-15 20:14:44 +0200 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-08-15 20:21:26 +0200 |
commit | 71d06996481c6187b016c3b14b7e9faaf8adc432 (patch) | |
tree | cbdb8882f31a7348e2b039c2bb3ca3aae171ca76 /dh_installdocs | |
parent | feb76f76e099df14be6ca5c33baf91d0a4f307a9 (diff) | |
download | debhelper-71d06996481c6187b016c3b14b7e9faaf8adc432.tar.gz |
dh_install, dh_installdocs, dh_clean: Fix uses of find -exec which cause it to ignore exit status of the commands run.
Diffstat (limited to 'dh_installdocs')
-rwxr-xr-x | dh_installdocs | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |