Skip to content

Commit 0e93b70

Browse files
committed
Windows: set CHOCO=NO to not use chocolatey
- needed when using the MSYS2 shell
1 parent fe29811 commit 0e93b70

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

cue.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,10 @@ def detect_context():
136136
ci['cachedir'] = os.environ['CACHEDIR']
137137

138138
if 'CHOCO' in os.environ:
139-
ci['choco'].extend(os.environ['CHOCO'].split())
139+
if os.environ['CHOCO'] == 'NO':
140+
ci['choco'] = []
141+
else:
142+
ci['choco'].extend(os.environ['CHOCO'].split())
140143

141144
if 'APT' in os.environ:
142145
ci['apt'].extend(os.environ['APT'].split())

0 commit comments

Comments
 (0)