diff --git a/scripts/lib/bsp/engine.py b/scripts/lib/bsp/engine.py index 00ce863f03..ac5058ca1f 100644 --- a/scripts/lib/bsp/engine.py +++ b/scripts/lib/bsp/engine.py @@ -449,6 +449,16 @@ def boolean(input_str, name): return name +def strip_base(input_str): + """ + strip '/base' off the end of input_str, so we can use 'base' in + the branch names we present to the user. + """ + if input_str and input_str.endswith("/base"): + return input_str[:-len("/base")] + return input_str.strip() + + deferred_choices = {} def gen_choices_defer(input_line, context, checklist = False):