X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dh_md5sums;fp=dh_md5sums;h=616a8d8970ffb2113f4b5274df9b4934afb5434f;hb=7bf320dd5c5f4995c4a03d3c14c8d70d5443480e;hp=2fc6f4abff8493ae3d3c8c0a129af289724ff744;hpb=fb6b68f1a6c5165da08afa0185d0ce8f8c5156d1;p=debhelper.git diff --git a/dh_md5sums b/dh_md5sums index 2fc6f4a..616a8d8 100755 --- a/dh_md5sums +++ b/dh_md5sums @@ -70,7 +70,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { } my $olddir=getcwd(); - complex_doit("cd $tmp >/dev/null ; find * -type f $exclude ! -regex '^DEBIAN/.*' -print0 | xargs -r0 md5sum > DEBIAN/md5sums ; cd '$olddir' >/dev/null"); + complex_doit("cd $tmp >/dev/null ; find . -type f $exclude ! -regex '.*/DEBIAN/.*' -printf '%P\\0' | xargs -r0 md5sum > DEBIAN/md5sums ; cd '$olddir' >/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");