set completion_time for cg builds
This commit is contained in:
parent
704f39e24e
commit
928e69f61e
1 changed files with 2 additions and 0 deletions
|
|
@ -4707,6 +4707,8 @@ class CG_Importer(object):
|
|||
buildinfo = dslice(metadata['build'], ['name', 'version', 'release', 'extra'])
|
||||
# epoch is not in the metadata spec, but we allow it to be specified
|
||||
buildinfo['epoch'] = metadata['build'].get('epoch', None)
|
||||
buildinfo['completion_time'] = \
|
||||
datetime.datetime.fromtimestamp(metadata['build']['end_time']).isoformat(' ')
|
||||
build_id = new_build(buildinfo)
|
||||
buildinfo = get_build(build_id, strict=True)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue