deprecate importBuildInPlace hub call
Related: #553 https://pagure.io/koji/issue/553
This commit is contained in:
parent
525102bfab
commit
45844af8ef
1 changed files with 2 additions and 1 deletions
|
|
@ -5660,13 +5660,14 @@ def import_rpm_file(fn, buildinfo, rpminfo):
|
|||
_import_archive_file(fn, os.path.dirname(final_path))
|
||||
|
||||
def import_build_in_place(build):
|
||||
"""Import a package already in the packages directory
|
||||
"""[DEPRECATED] Import a package already in the packages directory
|
||||
|
||||
This is used for bootstrapping the database
|
||||
Parameters:
|
||||
build: a dictionary with fields: name, version, release
|
||||
"""
|
||||
# Only an admin may do this
|
||||
logger.warning('import_build_in_place() is DEPRECATED')
|
||||
context.session.assertPerm('admin')
|
||||
prev = get_build(build)
|
||||
if prev is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue