summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Roberts <ryan.roberts@arm.com>2022-09-16 08:38:49 +0100
committerRyan Roberts <ryan.roberts@arm.com>2022-11-02 14:48:39 +0000
commit4fd6b835556c595cbbed5d0b7aa42d39bbb3baf6 (patch)
treefd8ca7e65a82ee3f06cc24a73a226298f52e130d
parentcafcf53db5f39e9f68109b6d3376b9e9bfffb8ba (diff)
run: Fix rtvars that have '=' in the value (e.g. kernel command line).
This was previously causing the code to split the string into more than just the key and value. The first '=' separates the key from value. Any subsequent '=' should just be considered part of the value string. Signed-off-by: Ryan Roberts <ryan.roberts@arm.com>
-rw-r--r--shrinkwrap/utils/rtvars.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/shrinkwrap/utils/rtvars.py b/shrinkwrap/utils/rtvars.py
index b282bbc..26c33c3 100644
--- a/shrinkwrap/utils/rtvars.py
+++ b/shrinkwrap/utils/rtvars.py
@@ -3,7 +3,7 @@ def parse(args):
for pair in args:
try:
- key, value = pair.split('=')
+ key, value = pair.split('=', maxsplit=1)
rtvars[key] = value
except ValueError:
raise Exception(f'Error: invalid rtvar {pair}')