summaryrefslogtreecommitdiffstats
path: root/scripts/lib/bsp
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/bsp')
-rw-r--r--scripts/lib/bsp/engine.py10
1 files changed, 10 insertions, 0 deletions
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):
449 return name 449 return name
450 450
451 451
452def strip_base(input_str):
453 """
454 strip '/base' off the end of input_str, so we can use 'base' in
455 the branch names we present to the user.
456 """
457 if input_str and input_str.endswith("/base"):
458 return input_str[:-len("/base")]
459 return input_str.strip()
460
461
452deferred_choices = {} 462deferred_choices = {}
453 463
454def gen_choices_defer(input_line, context, checklist = False): 464def gen_choices_defer(input_line, context, checklist = False):