Commit 4ea489ad authored by Pierre Schmitz's avatar Pierre Schmitz
Browse files

Move build and package logs to WORKDIR, otherwise it is lost

parent 0346db0f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -254,6 +254,10 @@ if mkarchroot -r "/chrootbuild" "$uniondir"; then
            mv "$f" "${WORKDIR}"
        fi
    done

    for l in "${uniondir}"/build/*-{build,package}.log; do
        [ -f "$l" ] && mv "$l" "${WORKDIR}"
    done
else
    #just in case. We returned 1, make sure we fail
    touch "${chrootdir}/union/build/BUILD_FAILED"