X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dh_md5sums;h=a53603e17ea31e09a7b7e5f4d8d97b1a9d15af7d;hb=refs%2Ftags%2F5.0.49;hp=0619a3bae2337063f5bce1df6942d8c7a6782bb1;hpb=4f162e192c3563d740490cc99ced1513104ac34c;p=debhelper.git diff --git a/dh_md5sums b/dh_md5sums index 0619a3b..a53603e 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; } @@ -72,8 +72,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { $exclude.="! \\( $dh{EXCLUDE_FIND} \\) "; } - 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) >/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");