From 1f1f7d443d0785ae96a34e51a4a632ad0ccfcc76 Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Thu, 18 Apr 2019 09:55:14 +0200 Subject: [PATCH] [build] Add log message when re-indexing --- bob/devtools/build.py | 4 +++- bob/devtools/scripts/build.py | 4 +++- bob/devtools/scripts/test.py | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/bob/devtools/build.py b/bob/devtools/build.py index 51a81d8e..224d0f13 100644 --- a/bob/devtools/build.py +++ b/bob/devtools/build.py @@ -526,7 +526,9 @@ def base_build(bootstrap, server, intranet, use_local, group, recipe_dir, if use_local: prefix = get_env_directory(os.environ['CONDA_EXE'], 'base') conda_bld = os.path.join(prefix, 'conda-bld') - if os.path.exists(conda_bld): conda_build.api.update_index(conda_bld) + if os.path.exists(conda_bld): + logger.info('Re-indexing %s', conda_bld) + conda_build.api.update_index(conda_bld) logger.info('Merging conda configuration files...') if python_version not in ('noarch', None): diff --git a/bob/devtools/scripts/build.py b/bob/devtools/scripts/build.py index 5391de04..e8498b20 100644 --- a/bob/devtools/scripts/build.py +++ b/bob/devtools/scripts/build.py @@ -121,7 +121,9 @@ def build(recipe_dir, python, condarc, config, no_test, append_file, # updates the local index to get fresh packages if required if use_local: conda_bld = os.path.join(prefix, 'conda-bld') - if os.path.exists(conda_bld): conda_build.api.update_index(conda_bld) + if os.path.exists(conda_bld): + logger.info('Re-indexing %s', conda_bld) + conda_build.api.update_index(conda_bld) conda_config = make_conda_config(config, python, append_file, condarc_options) diff --git a/bob/devtools/scripts/test.py b/bob/devtools/scripts/test.py index 9bab4f2d..c14f2f31 100644 --- a/bob/devtools/scripts/test.py +++ b/bob/devtools/scripts/test.py @@ -107,7 +107,9 @@ def test(package, condarc, config, append_file, server, group, private, stable, if use_local and not dry_run: prefix = get_env_directory(os.environ['CONDA_EXE'], 'base') conda_bld = os.path.join(prefix, 'conda-bld') - if os.path.exists(conda_bld): conda_build.api.update_index(conda_bld) + if os.path.exists(conda_bld): + logger.info('Re-indexing %s', conda_bld) + conda_build.api.update_index(conda_bld) conda_config = make_conda_config(config, None, append_file, condarc_options) -- GitLab