mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
Tools: build_binaries.py: handle badly formed config.mk
This commit is contained in:
parent
c498f17bc8
commit
b6404ff26b
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user