From 6fd83f31710b39054b887095dfc3ac2b2e3c0fe6 Mon Sep 17 00:00:00 2001 From: Kian-Tat Lim Date: Thu, 9 Oct 2025 09:17:18 -0700 Subject: [PATCH] Use index.json and eups.lsst.cloud. --- README.rst | 2 +- shared_stack.bash | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index 100e3c3..a8b57e1 100644 --- a/README.rst +++ b/README.rst @@ -3,4 +3,4 @@ LSST Shared Stack ================= Tools for maintaining and updating a shared EUPS product stack. See the -embedded documentation in ``shared_stack.py``. +embedded documentation in ``shared_stack.bash``. diff --git a/shared_stack.bash b/shared_stack.bash index bf74a6f..6c09d05 100644 --- a/shared_stack.bash +++ b/shared_stack.bash @@ -46,7 +46,7 @@ ############### # Software root directory -ROOT=/scratch/rubinsw +ROOT=/sdf/group/rubin/sw # State directory STATE=~/shared-stack # Top-level products to install @@ -91,8 +91,8 @@ $dryrun curl -L https://ls.st/lsstinstall -o $tmp/lsstinstall $dryrun mv $tmp/lsstinstall lsstinstall # Get list of tags -curl -L https://eups.lsst.codes/stack/src/tags | while read -r line; do - [[ "$line" =~ \>([dvw][0-9_]+(rc[0-9]+)?)\.list\< ]] && echo "${BASH_REMATCH[1]}" +curl -L https://eups.lsst.cloud/stack/src/tags/index.json | jq . | while read -r line; do + [[ "$line" =~ \"([dvw][0-9_]+(rc[0-9]+)?)\.list\" ]] && echo "${BASH_REMATCH[1]}" done | sort > $tmp/tags # For each tag not in the deleted list @@ -209,6 +209,7 @@ if [ -f "$tmp/w_list" ]; then fi if [ -f "$tmp/d_list" ]; then ( + set +e latest=$(head -n 1 "$tmp/d_list") set +x $dryrun source "$ROOT/tag/$latest/loadLSST.sh"