Ignore external packages when pushing to buildcache automatically (--autopush) (#43930)
This commit is contained in:
parent
b1d4fd14bc
commit
a0aa35667c
1 changed files with 4 additions and 0 deletions
|
@ -12,6 +12,10 @@
|
||||||
def post_install(spec, explicit):
|
def post_install(spec, explicit):
|
||||||
# Push package to all buildcaches with autopush==True
|
# 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
|
# Do nothing if package was not installed from source
|
||||||
pkg = spec.package
|
pkg = spec.package
|
||||||
if pkg.installed_from_binary_cache:
|
if pkg.installed_from_binary_cache:
|
||||||
|
|
Loading…
Reference in a new issue