diff options
author | Paul Sherwood <paul.sherwood@codethink.co.uk> | 2016-05-22 14:59:20 +0100 |
---|---|---|
committer | Paul Sherwood <paul.sherwood@codethink.co.uk> | 2016-05-29 19:38:30 +0100 |
commit | e334c50b897917dcc10d73e0ba5bc2328209095a (patch) | |
tree | 2e528dc1cdd91d9bf3d51481d45af65fdbc2b46f | |
parent | 77ad4e408817273bc7a43317c70ed78ea37d2a82 (diff) | |
download | ybd-e334c50b897917dcc10d73e0ba5bc2328209095a.tar.gz |
Add definitions repo+ref to .meta, from artifact-version: 4 onwards16.22
-rw-r--r-- | ybd/splitting.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ybd/splitting.py b/ybd/splitting.py index fa7d5e2..40f27cc 100644 --- a/ybd/splitting.py +++ b/ybd/splitting.py @@ -269,6 +269,10 @@ def write_metafile(rules, splits, component): if component.get('kind', 'chunk') == 'chunk': metadata['repo'] = component.get('repo') metadata['ref'] = component.get('ref') + else: + if config.get('artifact-version', 0) > 3: + metadata['repo'] = config['defdir'] + metadata['ref'] = config['def-version'] if config.get('artifact-version', 0) not in [0, 1]: metadata['cache'] = component.get('cache') |