From 5057346ca6c48647f53b76ca9bd990f7edd9da0c Mon Sep 17 00:00:00 2001 From: Stackage Curators Date: Thu, 19 Aug 2021 08:37:49 +0000 Subject: [PATCH] Support NOPLAN=2 --- automated/build.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/automated/build.sh b/automated/build.sh index c9645314..92dc84ed 100755 --- a/automated/build.sh +++ b/automated/build.sh @@ -98,16 +98,17 @@ fi # # * Update the package index (unless LTS) # * Create a new plan -if [ "${NOPLAN:-}x" = "x" ] +if [ "${NOPLAN:-}x" = "1x" ] then - if [ $SHORTNAME = "lts" ] - then - docker run $ARGS_PREBUILD $IMAGE /bin/bash -c "curator constraints --target $TARGET && curator snapshot-incomplete --target $TARGET && curator snapshot" - else - docker run $ARGS_PREBUILD $IMAGE /bin/bash -c "curator update && curator constraints --target $TARGET && curator snapshot-incomplete --target $TARGET && curator snapshot" - fi -else docker run $ARGS_PREBUILD $IMAGE /bin/bash -c "curator snapshot-incomplete --target $TARGET && curator snapshot" +elif [ "${NOPLAN:-}x" = "2x" ] +then + docker run $ARGS_PREBUILD $IMAGE /bin/bash -c "curator snapshot-incomplete --target $TARGET && curator snapshot" +elif [ $SHORTNAME = "lts" ] +then + docker run $ARGS_PREBUILD $IMAGE /bin/bash -c "curator constraints --target $TARGET && curator snapshot-incomplete --target $TARGET && curator snapshot" +else + docker run $ARGS_PREBUILD $IMAGE /bin/bash -c "curator update && curator constraints --target $TARGET && curator snapshot-incomplete --target $TARGET && curator snapshot" fi