X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dh_md5sums;fp=dh_md5sums;h=8fd8b2eb5b810320656c0d45388a9b6d8e04c8d6;hb=14d0783a65e1feff79a3534e3ec5bd14733d3d9a;hp=91c217e20ad8a66b3211b6e46b9113e0a9a59186;hpb=5b7ac1ae5b74507930d42c9bbc7c9d52d0b06f89;p=debhelper.git diff --git a/dh_md5sums b/dh_md5sums index 91c217e..8fd8b2e 100755 --- a/dh_md5sums +++ b/dh_md5sums @@ -62,7 +62,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { while () { chomp; s/^\///; - $exclude.="! -path \"$_\" "; + $exclude.="! -path \"./$_\" "; } close CONFF; } @@ -73,7 +73,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { } my $olddir=getcwd(); - complex_doit("cd $tmp >/dev/null ; find -type f $exclude ! -regex '.*/DEBIAN/.*' -printf '%P\\0' | 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");