Skip to content

Commit 42502b4

Browse files
committed
wrap buildcache keys --install --trust with conditional
1 parent 8e575b0 commit 42502b4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

stackinator/templates/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ pre-install: spack-setup
3333

3434
mirror-setup: spack-setup{% if pre_install_hook %} pre-install{% endif %}
3535

36+
{% if buildcache_mirrors %}
3637
@echo "Pulling and trusting keys from configured buildcaches."
3738
$(SANDBOX) $(SPACK) buildcache keys --install --trust
39+
{% endif %}
3840
@echo "Adding mirror gpg keys."
3941
{% for key_path in gpg_keys %}
4042
$(SANDBOX) $(SPACK) gpg trust {{ key_path }}

0 commit comments

Comments
 (0)