]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_md5sums
r1590: * Converted several chown 0.0 to chown 0:0 for POSIX 200112.
[debhelper.git] / dh_md5sums
index 2fc6f4abff8493ae3d3c8c0a129af289724ff744..7d313220a58238caf752deb57bbabc1697219543 100755 (executable)
@@ -18,6 +18,7 @@ B<dh_md5sums> [S<I<debhelper options>>] [B<-x>] [B<-X>I<item>] [B<--include-conf
 
 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.
 
 All files in DEBIAN/ are omitted from the md5sums file, as are all
 conffiles (unless you use the --include-conffiles switch).
@@ -70,20 +71,20 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
        }
        
        my $olddir=getcwd();
-       complex_doit("cd $tmp >/dev/null ; find * -type f $exclude ! -regex '^DEBIAN/.*' -print0 | xargs -r0 md5sum > DEBIAN/md5sums ; cd '$olddir' >/dev/null");
+       complex_doit("cd $tmp >/dev/null ; find . -type f $exclude ! -regex '.*/DEBIAN/.*' -printf '%P\\0' | xargs -r0 md5sum > DEBIAN/md5sums ; cd '$olddir' >/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");
        }
        else {
                doit("chmod",644,"$tmp/DEBIAN/md5sums");
-               doit("chown","0.0","$tmp/DEBIAN/md5sums");
+               doit("chown","0:0","$tmp/DEBIAN/md5sums");
        }
 }
 
 =head1 SEE ALSO
 
-L<debhelper(1)>
+L<debhelper(7)>
 
 This program is a part of debhelper.