changeset 1824:893e70efe047

Don't try to repackage toolchain.sqf if root-filesystem-$ARCH doesn't exist.
author Rob Landley <rob@landley.net>
date Mon, 07 Dec 2015 12:52:55 -0600
parents 1d233a893085
children 2dd2e648c2ae
files system-image.sh
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/system-image.sh	Tue Dec 01 20:50:53 2015 -0600
+++ b/system-image.sh	Mon Dec 07 12:52:55 2015 -0600
@@ -93,7 +93,8 @@
 
 # Package native-compiler into squashfs for /dev/hda mount
 
-if is_newer "$STAGE_DIR/toolchain.sqf" "$BUILD/native-compiler-$ARCH"
+if [ -e "$BUILD/native-compiler-$ARCH" ] &&
+  is_newer "$STAGE_DIR/toolchain.sqf" "$BUILD/native-compiler-$ARCH"
 then
   SYSIMAGE_TYPE=squashfs image_filesystem "$BUILD/native-compiler-$ARCH" \
     "$STAGE_DIR/temp" &&