import_build without a build_id should never happen
This commit is contained in:
parent
8c32aa37cb
commit
cf387e5c73
1 changed files with 2 additions and 1 deletions
|
|
@ -6333,7 +6333,8 @@ def import_build(srpm, rpms, brmap=None, task_id=None, build_id=None, logs=None)
|
|||
build['volume_name'] = vol['name']
|
||||
|
||||
if build_id is None:
|
||||
# it is always a non-draft build
|
||||
# This should not be possible
|
||||
logger.error('Calling import_build without a build_id is deprecated')
|
||||
build_id = new_build(build)
|
||||
binfo = get_build(build_id, strict=True)
|
||||
new_typed_build(binfo, 'rpm')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue