deprecate importBuildInPlace hub call

Related: #553
https://pagure.io/koji/issue/553
This commit is contained in:
Mike McLean 2017-08-14 11:34:24 -04:00
parent 525102bfab
commit 45844af8ef

View file

@ -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: