From a0aa35667c5c21a6eba9c9f8dd79d19e17b477f5 Mon Sep 17 00:00:00 2001 From: Adrien Bernede <51493078+adrienbernede@users.noreply.github.com> Date: Thu, 2 May 2024 09:50:10 +0200 Subject: Ignore external packages when pushing to buildcache automatically (--autopush) (#43930) --- lib/spack/spack/hooks/autopush.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/spack/spack/hooks/autopush.py b/lib/spack/spack/hooks/autopush.py index b49f741ad9..1974c8d3ab 100644 --- a/lib/spack/spack/hooks/autopush.py +++ b/lib/spack/spack/hooks/autopush.py @@ -12,6 +12,10 @@ import spack.mirror def post_install(spec, explicit): # Push package to all buildcaches with autopush==True + # Do nothing if spec is an external package + if spec.external: + return + # Do nothing if package was not installed from source pkg = spec.package if pkg.installed_from_binary_cache: -- cgit v1.2.3-70-g09d2