diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2023-12-10 00:36:04 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2023-12-10 00:36:04 -0500 |
commit | 5ee11baa2b388e5fa69314cd3541abadfbce3b50 (patch) | |
tree | d7f8b2fc422f9d9ce8d61b71fcefe3c2ae93ff31 /src | |
parent | 5c87acf3473bbe4f157b667b82bcea885c06b76c (diff) | |
download | stasis-5ee11baa2b388e5fa69314cd3541abadfbce3b50.tar.gz |
Set conda to quiet mode when verbosity is not toggled
Diffstat (limited to 'src')
-rw-r--r-- | src/conda.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/conda.c b/src/conda.c index 6e72a87..6f76e32 100644 --- a/src/conda.c +++ b/src/conda.c @@ -158,10 +158,16 @@ int conda_activate(const char *root, const char *env_name) { } void conda_setup_headless() { + if (globals.verbose) { + conda_exec("config --system --set quiet false"); + } else { + // Not verbose, so squelch conda's noise + conda_exec("config --system --set quiet true"); + } + // Configure conda for headless CI conda_exec("config --system --set auto_update_conda false"); conda_exec("config --system --set always_yes true"); - conda_exec("config --system --set quiet true"); conda_exec("config --system --set rollback_enabled false"); conda_exec("config --system --set report_errors false"); |