]> git.donarmstrong.com Git - debhelper.git/commitdiff
dh_md5sums: Sort to ensure stable, more diffable order. Closes: #573702
authorJoey Hess <joey@gnu.kitenet.net>
Wed, 31 Mar 2010 19:58:54 +0000 (15:58 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Wed, 31 Mar 2010 19:58:54 +0000 (15:58 -0400)
debian/changelog
dh_md5sums

index c44632ff33984da84d231bcab7b423b6ab8e3e41..358282e47fe835eb6ecfedee59ec4255fc47dfdb 100644 (file)
@@ -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 <joeyh@debian.org>  Thu, 18 Feb 2010 17:53:27 -0500
 
index da00090b479aef4903371d872b7917ea6c42cf22..ba1adf4fd9b3fec1a5161ef5b60de38eeffaf326 100755 (executable)
@@ -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");