From 7d9d4266292d22f73c41ec5c73b6eab4f810f400 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Sat, 7 Nov 2020 08:13:47 -0800 Subject: [PATCH] avoid empty EXTRA* Helpful when the value of EXTRA can be conditionally computed, but unset is not an easy option. eg. with github actions --- cue.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cue.py b/cue.py index ed58f56..f1fe12f 100644 --- a/cue.py +++ b/cue.py @@ -715,8 +715,9 @@ def setup_for_build(args): # Add EXTRA make arguments for tag in ['EXTRA', 'EXTRA1', 'EXTRA2', 'EXTRA3', 'EXTRA4', 'EXTRA5']: - if tag in os.environ: - extra_makeargs.append(os.environ[tag]) + val = os.environ.get(tag, "") + if len(val)>0: + extra_makeargs.append(val) def fix_etc_hosts():