From 249415f0467500fb66bf9e9b4b02dc5494b19d21 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Sep 18 2017 20:11:32 +0000 Subject: PR#554: deprecate importBuildInPlace hub call Merges #554 https://pagure.io/koji/pull-request/554 --- diff --git a/hub/kojihub.py b/hub/kojihub.py index 9178ab9..c60c6c1 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -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: