From acf180a7583e54831dfd62b88336501afb42082d Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 13 Dec 2016 14:41:50 +0900 Subject: [PATCH] build.sh: do not update Hackage packages list for LTS New packages from Hackage should only be pulled by Nightly. ie LTS should never be ahead of Nightly in terms of package versions. --- automated/build.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/automated/build.sh b/automated/build.sh index 9df389fb..13e39791 100755 --- a/automated/build.sh +++ b/automated/build.sh @@ -98,11 +98,16 @@ curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip # Determine the new build plan unless NOPLAN is set # -# * Update the package index +# * Update the package index (unless LTS) # * Create a new plan if [ "${NOPLAN:-}x" = "x" ] then - docker run $ARGS_PREBUILD $IMAGE /bin/bash -c "stack update && exec stackage-curator create-plan --plan-file $PLAN_FILE --target $TARGET ${CONSTRAINTS:-}" + if [ $SHORTNAME = "lts" ] + then + docker run $ARGS_PREBUILD $IMAGE /bin/bash -c "exec stackage-curator create-plan --plan-file $PLAN_FILE --target $TARGET ${CONSTRAINTS:-}" + else + docker run $ARGS_PREBUILD $IMAGE /bin/bash -c "stack update && exec stackage-curator create-plan --plan-file $PLAN_FILE --target $TARGET ${CONSTRAINTS:-}" + fi fi # Do the rest of the pre-build actions: