From d07aa0156ebafe9223af2c5566764468b5aa7cdd Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Tue, 9 Jan 2024 14:34:06 -0800 Subject: [PATCH] build/bin/sage-spkg: For spkg-check, fall back to PKG_SCRIPTS, not SAGE_ROOT --- build/bin/sage-spkg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/bin/sage-spkg b/build/bin/sage-spkg index 74163f27d58..e56c6949fd9 100755 --- a/build/bin/sage-spkg +++ b/build/bin/sage-spkg @@ -621,11 +621,11 @@ for script in $WRAPPED_SCRIPTS; do # directory, and may be run later. # For the installed *rm scripts, set their root directory to $SAGE_ROOT. # For the installed check scripts, some need the temporary build directory, - # others don't. So try to run out of the temporary build directory - # but fall back to $SAGE_ROOT. + # others are OK with $PKG_SCRIPTS. So try to run out of the temporary + # build directory but fall back to the latter. case $script in check) script_dir="$(pwd)" - fallback_script_dir="\$SAGE_ROOT" + fallback_script_dir="$PKG_SCRIPTS" ;; *rm) script_dir="\$SAGE_ROOT" fallback_script_dir=