diff options
author | Chris Johns <chrisj@rtems.org> | 2019-10-26 06:48:24 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2019-10-26 06:52:07 +1100 |
commit | fab7197c1b4e3f32574490405c7616d9d7bbd798 (patch) | |
tree | 2d16caf1b6437e1ba2f9b9397b78a1a7bd9390c8 | |
parent | dtc-1.2.0.cfg: Switch to sha512 so it builds (diff) | |
download | rtems-source-builder-fab7197c1b4e3f32574490405c7616d9d7bbd798.tar.bz2 |
sb/options: Split options on the first '=' only.
Split only on the first '=' in an option so BSPOPTS can contain
an '='.
-rw-r--r-- | source-builder/sb/options.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source-builder/sb/options.py b/source-builder/sb/options.py index 8063734..fa07c53 100644 --- a/source-builder/sb/options.py +++ b/source-builder/sb/options.py @@ -249,7 +249,7 @@ class command_line: while arg < len(self.args): a = self.args[arg] if a.startswith('--'): - los = a.split('=') + los = a.split('=', 1) lo = los[0] if lo in self._long_opts: long_opt = self._long_opts[lo] @@ -498,7 +498,7 @@ class command_line: lhs = None rhs = None if '=' in self.args[a]: - eqs = self.args[a].split('=') + eqs = self.args[a].split('=', 1) lhs = eqs[0] if len(eqs) > 2: rhs = '='.join(eqs[1:]) |