summaryrefslogtreecommitdiff
path: root/src/hydrilla
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-02-09 17:04:55 +0100
committerWojtek Kosior <koszko@koszko.org>2022-02-09 17:04:55 +0100
commitd49925b8d17d206a8edf5b537b64c2055dc697c4 (patch)
treefc669aaa3cafd55304006344b98c7ef8b654234c /src/hydrilla
parentfd38a0e1dd3dbe0de365e938ac3dca3bee4320dd (diff)
downloadhydrilla-builder-d49925b8d17d206a8edf5b537b64c2055dc697c4.tar.gz
hydrilla-builder-d49925b8d17d206a8edf5b537b64c2055dc697c4.zip
make resource dependency specifier an object
Diffstat (limited to 'src/hydrilla')
-rw-r--r--src/hydrilla/builder/build.py5
m---------src/hydrilla/schemas0
2 files changed, 4 insertions, 1 deletions
diff --git a/src/hydrilla/builder/build.py b/src/hydrilla/builder/build.py
index 0044614..cdbfad3 100644
--- a/src/hydrilla/builder/build.py
+++ b/src/hydrilla/builder/build.py
@@ -251,8 +251,11 @@ class Build:
script_file_refs = [self._process_file(f['file'])
for f in item_def.get('scripts', [])]
+ deps = [{'identifier': res_ref['identifier']}
+ for res_ref in item_def.get('dependencies', [])]
+
new_item_obj = {
- 'dependencies': item_def.get('dependencies', []),
+ 'dependencies': deps,
'scripts': script_file_refs
}
else:
diff --git a/src/hydrilla/schemas b/src/hydrilla/schemas
-Subproject c72c8438875d20b156d22d975523a19bbb407d9
+Subproject 15d58dac1975a5429f9d1223676dddc1026b2a7