Skip to content
Snippets Groups Projects
Commit 3b4bd2e5 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[build] Fix call to conda_build.api.build() when passing metadata

parent 0241fb3b
No related branches found
No related tags found
No related merge requests found
Pipeline #27859 passed
...@@ -524,7 +524,7 @@ def base_build(bootstrap, server, intranet, group, recipe_dir, ...@@ -524,7 +524,7 @@ def base_build(bootstrap, server, intranet, group, recipe_dir,
# if you get to this point, just builds the package # if you get to this point, just builds the package
logger.info('Building %s', path) logger.info('Building %s', path)
conda_build.api.build(metadata, config=conda_config) conda_build.api.build(metadata[0], config=conda_config)
if __name__ == '__main__': if __name__ == '__main__':
......
...@@ -200,7 +200,7 @@ def rebuild(recipe_dir, python, condarc, config, append_file, ...@@ -200,7 +200,7 @@ def rebuild(recipe_dir, python, condarc, config, append_file,
os.unlink(candidate) os.unlink(candidate)
if not dry_run: if not dry_run:
conda_build.api.build(metadata, config=conda_config, notest=no_test) conda_build.api.build(metadata[0], config=conda_config, notest=no_test)
# if you get to this point, the package was successfully rebuilt # if you get to this point, the package was successfully rebuilt
# set environment to signal caller we can upload it # set environment to signal caller we can upload it
os.environ['BDT_REBUILD'] = candidate os.environ['BDT_REBUILD'] = candidate
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment