From 494f67c74f914f98032552f9b3ad791170e241d8 Mon Sep 17 00:00:00 2001 From: Ralph Lange Date: Sun, 10 Mar 2024 15:22:22 +0100 Subject: [PATCH] workaround for chocolatey CLI issues --- cue-test.py | 2 +- cue.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cue-test.py b/cue-test.py index a4c2e3b..2b62573 100644 --- a/cue-test.py +++ b/cue-test.py @@ -707,7 +707,7 @@ class TestSetupForBuild(unittest.TestCase): choco_installs = ['make'] if ci_service != 'appveyor': choco_installs.append('strawberryperl') - sp.check_call(['choco', 'install', '-ry'] + choco_installs) + sp.check_call(['choco', 'install', '-ry'] + choco_installs + ['-y', '--limitoutput', '--no-progress', '-u', '""', '-p', '""']) def setUp(self): cue.building_base = True diff --git a/cue.py b/cue.py index 218f064..158a15e 100644 --- a/cue.py +++ b/cue.py @@ -1237,7 +1237,7 @@ def prepare(args): fold_start('install.choco', 'Installing CHOCO packages') for i in range(0,3): try: - sp.check_call(['choco', 'install'] + ci['choco'] + ['-y', '--limitoutput', '--no-progress']) + sp.check_call(['choco', 'install'] + ci['choco'] + ['-y', '--limitoutput', '--no-progress', '-u', '""', '-p', '""']) except Exception as e: print(e) print("Retrying choco install attempt {} after 30 seconds".format(i+1))