osbuild: on-demand building of pipelines

Use the new Manifest.depsolve function to only build the pipelines that
were explicitly requested and their dependencies, taking into account
what is already present in the store.
Since now not all pipeline will be built, there wont be a result entry
for all the pipelines, thus the format version 2 result formatting was
changed to not require the pipeline to be present in result set.
This commit is contained in:
Christian Kellner 2021-10-25 16:03:04 +02:00 committed by Tom Gundersen
parent 749912c75a
commit 29f2a68eeb
4 changed files with 13 additions and 9 deletions

View file

@ -82,7 +82,7 @@ class TestFormatV1(unittest.TestCase):
libdir = os.path.abspath(os.curdir)
store = ObjectStore(storedir)
res = manifest.build(store, monitor, libdir)
res = manifest.build(store, manifest.pipelines, monitor, libdir)
return res
def test_canonical(self):