Allow conditional consideration of specified sources for building/checkout

This commit is contained in:
Waqar Ahmed
2022-08-05 15:34:47 +05:00
parent 86bc8f116b
commit a805019522
5 changed files with 57 additions and 3 deletions

View File

@@ -7,7 +7,10 @@ _VERS = '22.12-MASTER'
def get_env_variable(key, _type, default_value=None):
value = environ.get(key)
return get_normalized_value(environ.get(key), _type, default_value)
def get_normalized_value(value, _type, default_value=None):
if value:
if _type == bool:
if value.isdigit():