]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_md5sums
Revert "python_distutils: Pass --force to setup.py build, to ensure that when python...
[debhelper.git] / dh_md5sums
index da00090b479aef4903371d872b7917ea6c42cf22..56d1252a95b54b9b50c2d61ec360da3eb5e8f31f 100755 (executable)
@@ -75,7 +75,8 @@ 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");
+       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") {
                doit("rm","-f","$tmp/DEBIAN/md5sums");