Commit 3cea53c3 authored by locallycompact-ct's avatar locallycompact-ct

Check for cached artifacts

parent 8b902209
...@@ -23,6 +23,7 @@ import fcntl ...@@ -23,6 +23,7 @@ import fcntl
from ybd import app, cache, sandbox from ybd import app, cache, sandbox
from ybd.app import cleanup, config, log, RetryException, setup, spawn, timer from ybd.app import cleanup, config, log, RetryException, setup, spawn, timer
from ybd.assembly import compose, build from ybd.assembly import compose, build
from ybd.cache import get_cache, get_remote
from ybd.deployment import deploy from ybd.deployment import deploy
from ybd.pots import Pots from ybd.pots import Pots
from ybd.concourse import Pipeline from ybd.concourse import Pipeline
...@@ -99,6 +100,8 @@ with timer('TOTAL'): ...@@ -99,6 +100,8 @@ with timer('TOTAL'):
while True: while True:
try: try:
for y in target['contents']: for y in target['contents']:
if not get_cache(y):
get_remote(y)
with sandbox.setup(y): with sandbox.setup(y):
build(x,y,target['contents']) build(x,y,target['contents'])
break break
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment