From: Joey Hess Date: Tue, 10 Apr 2012 16:42:17 +0000 (-0400) Subject: dh_md5sums: Don't skip DEBIAN directories other than the control files one. Closes... X-Git-Url: https://git.donarmstrong.com/?p=debhelper.git;a=commitdiff_plain;h=561b98cd1572b417d95d7844df797705c330053f;ds=sidebyside dh_md5sums: Don't skip DEBIAN directories other than the control files one. Closes: #668276 --- diff --git a/debian/changelog b/debian/changelog index 99286ff..a2e876b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,8 @@ debhelper (9.20120323) UNRELEASED; urgency=low * Fix a typo. Closes: #665891 * Conflict with too old automake for AM_UPDATE_INFO_DIR=no. Closes: #666901 + * dh_md5sums: Don't skip DEBIAN directories other than the control files + one. Closes: #668276 -- Joey Hess Mon, 26 Mar 2012 17:18:58 -0400 diff --git a/dh_md5sums b/dh_md5sums index a31d715..4a1264b 100755 --- a/dh_md5sums +++ b/dh_md5sums @@ -75,7 +75,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { $exclude.="! \\( $dh{EXCLUDE_FIND} \\) "; } - my $find="find . -type f $exclude ! -regex '.*/DEBIAN/.*' -printf '%P\\0'"; + 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") {