X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dh_md5sums;h=56d1252a95b54b9b50c2d61ec360da3eb5e8f31f;hb=e69683dc13ff9610d982069a9a2e8a311b500655;hp=ba1adf4fd9b3fec1a5161ef5b60de38eeffaf326;hpb=2380e46415865dc654e2b8056aa85b893f4b93fb;p=debhelper.git diff --git a/dh_md5sums b/dh_md5sums index ba1adf4..56d1252 100755 --- a/dh_md5sums +++ b/dh_md5sums @@ -75,7 +75,8 @@ foreach my $package (@{$dh{DOPACKAGES}}) { $exclude.="! \\( $dh{EXCLUDE_FIND} \\) "; } - complex_doit("(cd $tmp >/dev/null ; find . -type f $exclude ! -regex '.*/DEBIAN/.*' -printf '%P\\0' | LC_ALL=C sort -z | xargs -r0 md5sum > DEBIAN/md5sums) >/dev/null"); + my $find="find . -type f $exclude ! -regex '.*/DEBIAN/.*' -printf '%P\\0'"; + complex_doit("(cd $tmp >/dev/null ; $find | LC_ALL=C sort -z | xargs -r0 md5sum > DEBIAN/md5sums) >/dev/null"); # If the file's empty, no reason to waste inodes on it. if (-z "$tmp/DEBIAN/md5sums") { doit("rm","-f","$tmp/DEBIAN/md5sums");