Skip to content

Commit d07aa01

Browse files
author
Matthias Koeppe
committed
build/bin/sage-spkg: For spkg-check, fall back to PKG_SCRIPTS, not SAGE_ROOT
1 parent 0e3f69b commit d07aa01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build/bin/sage-spkg

+3-3
Original file line numberDiff line numberDiff line change
@@ -621,11 +621,11 @@ for script in $WRAPPED_SCRIPTS; do
621621
# directory, and may be run later.
622622
# For the installed *rm scripts, set their root directory to $SAGE_ROOT.
623623
# For the installed check scripts, some need the temporary build directory,
624-
# others don't. So try to run out of the temporary build directory
625-
# but fall back to $SAGE_ROOT.
624+
# others are OK with $PKG_SCRIPTS. So try to run out of the temporary
625+
# build directory but fall back to the latter.
626626
case $script in
627627
check) script_dir="$(pwd)"
628-
fallback_script_dir="\$SAGE_ROOT"
628+
fallback_script_dir="$PKG_SCRIPTS"
629629
;;
630630
*rm) script_dir="\$SAGE_ROOT"
631631
fallback_script_dir=

0 commit comments

Comments
 (0)