Greenwave query class and configuration update

Signed-off-by: Valerij Maljulin <vmaljuli@redhat.com>
This commit is contained in:
Valerij Maljulin
2019-04-02 19:43:07 +02:00
parent 7a39e1e893
commit 1b486b1625
8 changed files with 228 additions and 10 deletions

View File

@@ -295,14 +295,9 @@ class KojiContentGenerator(object):
return rpms
def _get_build(self):
ret = {}
ret[u"name"] = self.module.name
ret = self.module.nvr
if self.devel:
ret["name"] += "-devel"
ret[u"version"] = self.module.stream.replace("-", "_")
# Append the context to the version to make NVRs of modules unique in the event of
# module stream expansion
ret[u"release"] = "{0}.{1}".format(self.module.version, self.module.context)
ret[u"source"] = self.module.scmurl
ret[u"start_time"] = calendar.timegm(self.module.time_submitted.utctimetuple())
ret[u"end_time"] = calendar.timegm(self.module.time_completed.utctimetuple())