From: Joey Hess Date: Wed, 31 Mar 2010 19:58:54 +0000 (-0400) Subject: dh_md5sums: Sort to ensure stable, more diffable order. Closes: #573702 X-Git-Tag: 7.4.16~4 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=2380e46415865dc654e2b8056aa85b893f4b93fb;p=debhelper.git dh_md5sums: Sort to ensure stable, more diffable order. Closes: #573702 --- diff --git a/debian/changelog b/debian/changelog index c44632f..358282e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -14,6 +14,7 @@ debhelper (7.4.16) UNRELEASED; urgency=low can efficiently be changed to the more sane default of acting on only packages that can be built for the current architecture. This change is mostly useful when using minimal rules files with dh. Closes: #572077 + * dh_md5sums: Sort to ensure stable, more diffable order. Closes: #573702 -- Joey Hess Thu, 18 Feb 2010 17:53:27 -0500 diff --git a/dh_md5sums b/dh_md5sums index da00090..ba1adf4 100755 --- a/dh_md5sums +++ b/dh_md5sums @@ -75,7 +75,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { $exclude.="! \\( $dh{EXCLUDE_FIND} \\) "; } - complex_doit("(cd $tmp >/dev/null ; find . -type f $exclude ! -regex '.*/DEBIAN/.*' -printf '%P\\0' | xargs -r0 md5sum > DEBIAN/md5sums) >/dev/null"); + 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"); # If the file's empty, no reason to waste inodes on it. if (-z "$tmp/DEBIAN/md5sums") { doit("rm","-f","$tmp/DEBIAN/md5sums");