on master help sign in
build.sh: do not update Hackage packages list for LTS
acf180aJens Petersen
automated/build.sh+7−2
@@ -98,11 +98,16 @@ curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip
98
98
99# Determine the new build plan unless NOPLAN is set
99# Determine the new build plan unless NOPLAN is set
100#
100#
101−# * Update the package index
101+# * Update the package index (unless LTS)
102# * Create a new plan
102# * Create a new plan
103if [ "${NOPLAN:-}x" = "x" ]
103if [ "${NOPLAN:-}x" = "x" ]
104then
104then
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
105− docker run $ARGS_PREBUILD $IMAGE /bin/bash -c "stack update && exec stackage-curator create-plan --plan-file $PLAN_FILE --target $TARGET ${CONSTRAINTS:-}"
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
106fi
111fi
107
112
108# Do the rest of the pre-build actions:
113# Do the rest of the pre-build actions: