From 1541e70ad43873b63220b690242199eb0a5f68ef Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 24 Apr 2017 23:07:17 -0400 Subject: autobuild: Reset abslibre before trying to do anything. This means that we need a lock on the git repository. Which is fine, I wasn't totally convinced that the old narrower locking was safe anyway. --- .local/bin/autobuild.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.local/bin/autobuild.sh b/.local/bin/autobuild.sh index c5a9bad..a01c9da 100755 --- a/.local/bin/autobuild.sh +++ b/.local/bin/autobuild.sh @@ -47,9 +47,7 @@ main() { check_vars libretools WORKDIR ABSLIBRERECV ABSLIBRESEND # Lock to pevent conflicting runs ###################################### - - mkdir -p "${WORKDIR}/lockdir" - lock 9 "$HOME/packages/lockdir/${PWD//\//%2F}" "Waiting for previous run of %q to finish" "$0" + lock 9 "${WORKDIR}/autobuilder.lock" "Waiting for previous run of %q to finish" "$0" # Option/usage parsing ################################################# @@ -77,6 +75,8 @@ main() { # The real work begins! ################################################ # Get the ABSLibre tree + cd "$WORKDIR/abslibre" + env -i git reset --hard origin/master gitget -f -p "$ABSLIBRESEND" checkout "$ABSLIBRERECV" "$WORKDIR/abslibre" if ! [[ -f "${WORKDIR}/abslibre/${package}/PKGBUILD" ]]; then die "package does not exist in abslibre.git: %s" "$package" -- cgit v1.2.3-54-g00ecf