Commit 3cfa6120 authored by Robert Ricci's avatar Robert Ricci

Fix a problem in the parsing of status files - the code assumed that

there would be exactly one instance of = on each line (which just
look like shell environment variable declarlations.) Fixed this by
forcing the line to be split in two - everything after the first = is
part of the second string.

Note that this does not handle 'escaped' =s in an sane way. Thus, if
you have an environment variable with a = in its name, it will get
split incorrectly. We'll worry about this one if we see it. :)
parent 7f0d7a1e
......@@ -1920,7 +1920,7 @@ def validate_visitor(arg, dirname, names):
status = {}
for line in open(os.path.join(dirname, name)):
(key, value) = line.split("=")
(key, value) = line.split("=",2)
status[key] = value
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment