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:
parent
f1cd1ae562
commit
e53da69db3
@ -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:
|
||||
|
@ -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'],
|
||||
|
Loading…
Reference in New Issue
Block a user