@@ -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: