changeset 248:f32b23bbf83a

Properly detect a short sha1list during tarball extraction (I.E. notice if a new patch is added).
author Rob Landley <rob@landley.net>
date Mon, 05 Nov 2007 02:48:02 -0600
parents 0d8e80202e94
children c95713e54437
files include.sh
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/include.sh	Mon Nov 05 01:33:57 2007 -0600
+++ b/include.sh	Mon Nov 05 02:48:02 2007 -0600
@@ -39,7 +39,11 @@
     for i in "$SHA1TAR" $(sha1file "${SOURCES}/patches/$BASENAME"* 2>/dev/null)
     do
       # Is this sha1 in the file?
-      [ -z "$(echo "$SHALIST" | sed -n "s/$i/$i/p" )" ] && break
+      if [ -z "$(echo "$SHALIST" | sed -n "s/$i/$i/p" )" ]
+      then
+        SHALIST=missing
+        break
+      fi
       # Remove it
       SHALIST="$(echo "$SHALIST" | sed "s/$i//" )"
     done