| |
@@ -91,19 +91,19 @@
|
| |
namespace='container',
|
| |
scratch=conf.koji_container_scratch_build)
|
| |
|
| |
- def record_build(self, event, name, type, build_id, dep_of=None):
|
| |
+ def record_build(self, event, name, artifact_type, build_id, dep_of=None):
|
| |
"""
|
| |
Record build in db.
|
| |
|
| |
:param event: instance of an event.
|
| |
:param name: name of the artifact.
|
| |
- :param type: type of the artifact, can be 'rpm', 'image' or module.
|
| |
+ :param artifact_type: an enum member of ArtifactType.
|
| |
:param build_id: id of the build in build system.
|
| |
:param def_of: the artifact which this one depends on.
|
| |
"""
|
| |
ev = models.Event.get_or_create(db.session, event.msg_id,
|
| |
event.search_key, event.__class__)
|
| |
- models.ArtifactBuild.create(db.session, ev, name, type, build_id, dep_of)
|
| |
+ models.ArtifactBuild.create(db.session, ev, name, artifact_type.name.lower(), build_id, dep_of)
|
| |
db.session.commit()
|
| |
|
| |
def allow_build(self, artifact_type, name, branch):
|
| |