osbs: Add nvr to metadata

All the components are there already separately, but having the full NVR
should simplify searching the metadata with grep.

JIRA: COMPOSE-2519
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2018-05-28 13:15:24 +02:00
parent f1cd1ae562
commit e53da69db3
2 changed files with 2 additions and 0 deletions

View File

@ -102,6 +102,7 @@ class OSBSThread(WorkerThread):
'name': buildinfo['name'],
'version': buildinfo['version'],
'release': buildinfo['release'],
'nvr': '%(name)s-%(version)s-%(release)s' % buildinfo,
'creation_time': buildinfo['creation_time'],
})
for archive in archives:

View File

@ -135,6 +135,7 @@ METADATA = {
'name': 'my-name',
'version': '1.0',
'release': '1',
'nvr': 'my-name-1.0-1',
'creation_time': BUILD_INFO['creation_time'],
'filename': ARCHIVES[0]['filename'],
'size': ARCHIVES[0]['size'],