on master help sign in
Merge pull request #2134 from juhp/master

build.sh: do not update Hackage packages list for LTS

commitad6660978b42352acee1c4b9849fab088fe8e361 authorMichael Snoyman <michael@snoyman.com> dateWed 14 Dec 2016, 08:15 (10 years ago) parente7584eaacf180a
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: