Skip to content

Commit

Permalink
Only try to update the index if it's writable
Browse files Browse the repository at this point in the history
  • Loading branch information
greenc-FNAL committed Oct 2, 2024
1 parent 2307df9 commit ea6a3fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/make_subspack
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,12 @@ message "adding package repos..."

echo "Adding buildcache $binary_cache"
$SPACK_ROOT/bin/spack mirror add --scope site fnal $binary_cache
$SPACK_ROOT/bin/spack buildcache update-index -d $binary_cache
[ -w "$binary_cache" ] &&
$SPACK_ROOT/bin/spack buildcache update-index -d $binary_cache
message "Adding backup buildcache $binary_cache_bak"
$SPACK_ROOT/bin/spack mirror add --scope site scisoft $binary_cache_bak
$SPACK_ROOT/bin/spack buildcache update-index -d $binary_cache_bak
[ -w "$binary_cache_bak" ] &&
$SPACK_ROOT/bin/spack buildcache update-index -d $binary_cache_bak
$SPACK_ROOT/bin/spack -k buildcache keys --install --trust --force
if [ "$disable_caches" != "" ]
then
Expand Down

0 comments on commit ea6a3fe

Please sign in to comment.