]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Save error in .failed.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 15 Mar 2009 11:55:32 +0000 (11:55 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 15 Mar 2009 11:55:32 +0000 (11:55 +0000)
tools/make-buildspy
tools/make-include

index 4051ce00103e725c1a62fd791f93669670fe29b0..2c1c7af689cfcc49e1c9cc9dc928818aee8f9a77 100755 (executable)
@@ -31,7 +31,7 @@ build_spy() {
                LOGFILE="$BASEDIR/log_${TARGET}/_build.00-buildspy.log" \
                $BASEDIR/tools/make-buildspy &
        elif [ "$COMMAND" = "exit" ]; then
-               echo -n "BUILDSPY_EXIT " >> $BUILD_SPY_FILENAME
+               sleep 11 && echo -n "BUILDSPY_EXIT " >> $BUILD_SPY_FILENAME &
        else
                echo -n "${COMMAND}=$* " >> $BUILD_SPY_FILENAME
        fi
index 8cbf6e0f1f7e5b40d08be8fae0a28cca7651edce..5ac4ec0c51fffe61bf85e44daac6bd13e285ce39 100644 (file)
@@ -85,8 +85,9 @@ exiterror() {
        dialogerror $*
        build_spy state error
        if [ -n "$LOGFILE" ]; then
+               tail -n16 $LOGFILE > $FAILED
                echo "$(date -u '+%b %e %T') ERROR: $*" >> $LOGFILE
-               build_spy log $(tail -n16 $LOGFILE | $BASEDIR/tools/base64)
+               build_spy log $($BASEDIR/tools/base64 < $FAILED)
        fi
        build_spy exit
        touch $FAILED