on master help sign in
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.

commitacf180a7583e54831dfd62b88336501afb42082d authorJens Petersen <petersen@redhat.com> dateTue 13 Dec 2016, 14:41 (10 years ago) parente7584ea
1 file changed+7−2
automated/build.sh+7−2
automated/build.sh+7−2
@@ -98,11 +98,16 @@ curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip
9898
9999# Determine the new build plan unless NOPLAN is set
100100#
101−# * Update the package index
101+# * Update the package index (unless LTS)
102102# * Create a new plan
103103if [ "${NOPLAN:-}x" = "x" ]
104104then
105− docker run $ARGS_PREBUILD $IMAGE /bin/bash -c "stack update && exec stackage-curator create-plan --plan-file $PLAN_FILE --target $TARGET ${CONSTRAINTS:-}"
105+ if [ $SHORTNAME = "lts" ]
106+ then
107+ docker run $ARGS_PREBUILD $IMAGE /bin/bash -c "exec stackage-curator create-plan --plan-file $PLAN_FILE --target $TARGET ${CONSTRAINTS:-}"
108+ else
109+ docker run $ARGS_PREBUILD $IMAGE /bin/bash -c "stack update && exec stackage-curator create-plan --plan-file $PLAN_FILE --target $TARGET ${CONSTRAINTS:-}"
110+ fi
106111fi
107112
108113# Do the rest of the pre-build actions: