Skip to content

Commit

Permalink
Make disabling buildcache an option --without-caches
Browse files Browse the repository at this point in the history
  • Loading branch information
gartung committed Sep 19, 2024
1 parent e4a7696 commit 3e15ef3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/make_subspack
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ get_from_bootstrap() {
usage() {
echo "usage: make_subspack [options] [-t|-u] path/to/existing/spack /path/to/new/area"
echo " options are:"
echo "--with_caches enable buildcache mirrors
echo "--without_caches enable buildcache mirrors
echo "--with_padding enable directory padding in config"
echo "--spack_release xx install spack release xx"
echo "--spack_repo url use spack repo url"
Expand Down Expand Up @@ -45,7 +45,7 @@ parse_args() {
while echo x$1 | grep x- > /dev/null
do
case "x$1" in
x--with_caches) enable_caches=true; shift ;;
x--with_caches) disable_caches=true; shift ;;
x--with_padding) padding=true; shift ;;
x--spack_release) spack_release=$2; shift; shift;;
x--spack_repo) spack_repo=$2; shift; shift;;
Expand Down Expand Up @@ -306,7 +306,7 @@ 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
$SPACK_ROOT/bin/spack -k buildcache keys --install --trust --force
if [ "$enable_caches" = "" ]
if [ "$disable_caches" != "" ]
then
echo "Disabling buildcache mirrors."
mv $SPACK_ROOT/etc/spack/mirrors.yaml $SPACK_ROOT/etc/spack/mirrors.yaml.bak
Expand Down

0 comments on commit 3e15ef3

Please # to comment.