X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dh_md5sums;h=a31d7154a9178aa0581c673c7d79309857d8dd17;hb=fb8f18f4a98669c3b85e1bd7920fbabfc00b886e;hp=da00090b479aef4903371d872b7917ea6c42cf22;hpb=bf969c1ca026433477c3578123b28e9829ba4e25;p=debhelper.git diff --git a/dh_md5sums b/dh_md5sums index da00090..a31d715 100755 --- a/dh_md5sums +++ b/dh_md5sums @@ -16,12 +16,12 @@ B [S>] [B<-x>] [B<-X>I] [B<--include-conf =head1 DESCRIPTION -dh_md5sums is a debhelper program that is responsible for generating -a DEBIAN/md5sums file, which lists the md5sums of each file in the package. -These files are used by the debsums package. +B is a debhelper program that is responsible for generating +a F file, which lists the md5sums of each file in the package. +These files are used by the B package. -All files in DEBIAN/ are omitted from the md5sums file, as are all -conffiles (unless you use the --include-conffiles switch). +All files in F are omitted from the F file, as are all +conffiles (unless you use the B<--include-conffiles> switch). The md5sums file is installed with proper permissions and ownerships. @@ -32,11 +32,11 @@ The md5sums file is installed with proper permissions and ownerships. =item B<-x>, B<--include-conffiles> Include conffiles in the md5sums list. Note that this information is -redundant since it is included elsewhere in debian packages. +redundant since it is included elsewhere in Debian packages. =item B<-X>I, B<--exclude=>I -Exclude files that contain "item" anywhere in their filename from +Exclude files that contain I anywhere in their filename from being listed in the md5sums file. =back @@ -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");