Ignore external packages when pushing to buildcache automatically (--autopush) (#43930)

This commit is contained in:
Adrien Bernede 2024-05-02 09:50:10 +02:00 committed by GitHub
parent b1d4fd14bc
commit a0aa35667c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,6 +12,10 @@
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: