Support multiple manifests

This commit is contained in:
Drew DeVault 2020-07-13 16:31:44 -04:00
parent 581af620f0
commit 33ea654ac3

View file

@ -118,7 +118,9 @@ class GitService(SrhtService):
})
manifests = dict()
if r["data"]["repository"]["multiple"]:
raise NotImplemented() # TODO
for ent in r["data"]["repository"]["multiple"]["object"]\
["entries"]["results"]:
manifests[ent["name"]] = ent["object"]["text"]
elif r["data"]["repository"]["single"]:
manifests[".build.yml"] = r["data"]["repository"]["single"]\
["object"]["text"]