From b6404ff26b16e14edacfcf8e2c84b6683b569636 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 26 Oct 2017 14:22:44 +1100 Subject: [PATCH] Tools: build_binaries.py: handle badly formed config.mk --- Tools/scripts/build_binaries.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Tools/scripts/build_binaries.py b/Tools/scripts/build_binaries.py index fc72a7fa4f..8f1c58f6fe 100755 --- a/Tools/scripts/build_binaries.py +++ b/Tools/scripts/build_binaries.py @@ -570,11 +570,14 @@ is bob we will attempt to checkout bob-AVR''' def pollute_env_from_file(self, filepath): with open(filepath) as f: for line in f: - (name, value) = str.split(line, "=") + try: + (name, value) = str.split(line, "=") + except ValueError as e: + self.progress("%s: split failed: %s" % (filepath, str(e))) + continue value = value.rstrip() self.progress("%s: %s=%s" % (filepath, name,value)) os.environ[name] = value - sys.exit(1) def run(self): self.validate()