From 560297104f5b2893e4a83f987d78eeb83255a761 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: May 21 2019 16:14:33 +0000 Subject: also write repo.json for normal repos --- diff --git a/hub/kojihub.py b/hub/kojihub.py index 2f8ec94..88f4b32 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -2406,6 +2406,18 @@ def repo_init(tag, with_src=False, with_debuginfo=False, event=None): with open("%s/comps.xml" % groupsdir, 'w') as fo: fo.write(comps) + # write repo info to disk + repo_info = { + 'id': repo_id, + 'tag': tinfo['name'], + 'tag_id': tinfo['id'], + 'event_id': event_id, + 'with_src': with_src, + 'with_debuginfo': with_debuginfo, + } + with open('%s/repo.json' % repodir, 'w') as fp: + json.dump(repo_info, fp, indent=2) + #get build dirs relpathinfo = koji.PathInfo(topdir='toplink') builddirs = {}