Skip to content

Commit

Permalink
Use spack_source_dir to indicate the relative path of the spack insta…
Browse files Browse the repository at this point in the history
…llation to spack_env_top_dir
  • Loading branch information
gartung committed Nov 2, 2023
1 parent fc4d02f commit 9e891b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/build-spack-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ _copy_back_logs() {
mkdir -p "$tar_tmp/"{spack_env,spack-stage}
cd "$spack_env_top_dir"
_cmd $DEBUG_3 spack clean -dmp
_cmd $DEBUG_3 $PIPE tar -c *.log *-out.txt *.yaml etc var/spack/environments \
_cmd $DEBUG_3 $PIPE tar -c $spack_source_dir/*.log $spack_source_dir/*-out.txt $spack_source_dir/*.yaml $spack_source_dir/etc $spack_source_dir/spack/environments \
| _cmd $DEBUG_3 tar -C "$tar_tmp/spack_env" -x
_cmd $DEBUG_3 $PIPE tar -C "$(spack location -S)" -c . \
| _cmd $DEBUG_3 tar -C "$tar_tmp/spack-stage" -x
Expand Down Expand Up @@ -1213,9 +1213,9 @@ local_caches=(

spack_env_top_dir="$working_dir/spack_env"
case "$ups_opt" in
-p) spack_env_top_dir="$working_dir/spack_env";;
-u) spack_env_top_dir="$working_dir/spack_env/spack/$spack_ver/NULL/spack/$spack_ver/NULL/";;
-t) spack_env_top_dir="$working_dir/spack_env/spack/$spack_ver/NULL/spack/$spack_ver/NULL/";;
-p) spack_source_dir="./";;
-u) spack_source_dir="./spack/$spack_ver/NULL/";;
-t) spack_source_dir="./spack/$spack_ver/NULL/";;
-*) _die $EXIT_CONFIG_FAILURE "unrecognized --ups option $ups_opt\n$(usage)";;
*) break
esac
Expand Down

0 comments on commit 9e891b1

Please sign in to comment.