summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sherwood <paul.sherwood@codethink.co.uk>2015-09-08 17:41:33 +0000
committerPaul Sherwood <paul.sherwood@codethink.co.uk>2015-09-08 17:41:33 +0000
commit26183b2cb355c93d9ca5169e42919419b8f415e0 (patch)
tree338a2955bbbdd3491b27574fd4b7e97f2632890c
parent4680f454428d5e7dbf3f4f48029b08302ddf39f3 (diff)
downloadybd-26183b2cb355c93d9ca5169e42919419b8f415e0.tar.gz
We can download non-native artifacts
-rw-r--r--assembly.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/assembly.py b/assembly.py
index 879feb9..d1df267 100644
--- a/assembly.py
+++ b/assembly.py
@@ -35,14 +35,14 @@ def assemble(defs, target):
random.seed(datetime.datetime.now())
component = defs.get(target)
- if component.get('arch') and component['arch'] != app.config['arch']:
- app.log(target, 'Skipping assembly for', component.get('arch'))
- return None
-
if cache.get_remote_artifact(defs, component):
app.config['counter'] += 1
return cache.cache_key(defs, component)
+ if component.get('arch') and component['arch'] != app.config['arch']:
+ app.log(target, 'Skipping assembly for', component.get('arch'))
+ return None
+
with app.timer(component, 'assembly of %s' % component['cache']):
sandbox.setup(component)