add a comment in import_rpm
This commit is contained in:
parent
09fee79b3d
commit
4ba5ba0e5e
1 changed files with 2 additions and 0 deletions
|
|
@ -6414,6 +6414,8 @@ def import_rpm(fn, buildinfo=None, brootid=None, wrapper=False, fileinfo=None):
|
|||
if draft:
|
||||
# shouldn't happen with current code
|
||||
raise koji.GenericError('rpm import is not supported for draft builds')
|
||||
# the existing build got by rpminfo below should never be draft,
|
||||
# because "," is an invalid char for rpm "release"
|
||||
if rpminfo['sourcepackage'] == 1:
|
||||
buildinfo = get_build(rpminfo, strict=False)
|
||||
if not buildinfo:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue