Skip to content

Commit 8ba08a9

Browse files
committed
cosalib/builds: add get_build_commitmeta()
Similar to get_build_meta(), let's make a convenience function for grabbing commitmeta.
1 parent dc8c7d8 commit 8ba08a9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/cosalib/builds.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ def get_build_meta(self, build_id, basearch=None):
9494
with open(os.path.join(d, 'meta.json')) as f:
9595
return json.load(f)
9696

97+
def get_build_commitmeta(self, build_id, basearch=None):
98+
d = self.get_build_dir(build_id, basearch)
99+
with open(os.path.join(d, 'commitmeta.json')) as f:
100+
return json.load(f)
101+
97102
def get_tags(self):
98103
return self._data.get('tags', [])
99104

0 commit comments

Comments
 (0)