]> git.donarmstrong.com Git - debhelper.git/commitdiff
r177: Initial Import
authorjoey <joey>
Tue, 17 Aug 1999 05:10:37 +0000 (05:10 +0000)
committerjoey <joey>
Tue, 17 Aug 1999 05:10:37 +0000 (05:10 +0000)
debian/changelog
dh_md5sums
doc/README

index d00c059228d65e110d70f72708f0a59937a993c0..8fdd8d525be9df5be8d3154b503128e4af5eb045 100644 (file)
@@ -1,3 +1,9 @@
+debhelper (1.2.41) unstable; urgency=low
+
+  * README: minor typo fix.
+
+ -- Joey Hess <joeyh@master.debian.org>  Sat, 20 Feb 1999 23:30:00 -0800
+
 debhelper (1.2.40) unstable; urgency=low
 
   * Let's just say 1.2.39 is not a good version of debhelper to use and
index 4ab9041ab4319cc39f9a3ae5a19fe04e1e7ef093..76b87e825d9fff9af04e47ba1024e0462f3730f1 100755 (executable)
@@ -29,7 +29,13 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
        }
 
        $olddir=getcwd();
-       complex_doit("cd $TMP ; find * -type f $exclude ! -regex '^DEBIAN/.*' -print0 | xargs -0 md5sum > DEBIAN/md5sums ; cd $olddir");
-       doit("chmod",644,"$TMP/DEBIAN/md5sums");
-       doit("chown","root.root","$TMP/DEBIAN/md5sums");
+       complex_doit("cd $TMP ; find * -type f $exclude ! -regex '^DEBIAN/.*' -print0 | xargs -r0 md5sum > DEBIAN/md5sums ; cd $olddir");
+       # 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","root.root","$TMP/DEBIAN/md5sums");
+       }
 }
index 30f2a2cf4af02e4da466cc6e97943c0c0ee08726..774f9fd43404e885ec8291fe7cedcbb64e61ba15 100644 (file)
@@ -38,7 +38,7 @@ script. If you would like to embed it into a perl script, here is one way to
 do that (note the tricky use of backquotes) (also note that I made sure that
 $1, $2, etc are set with the set command):
 
-print << `EOF`
+print << `EOF`;
 set -- @ARGV
 #DEBHELPER#
 EOF