Avoid some false his on the keyword 'usage'.

This commit is contained in:
Eric S. Raymond 2008-02-01 23:29:58 +00:00
parent ecef4e1a91
commit b5c52be244

View file

@ -652,7 +652,7 @@ def sanity_check(filename, lines):
(key, prefix, unit_id, comment) = parse_attribute(lines[i])
if unit_id[0] == "_":
unit_id = unit_id[1:].strip()
if "usage" in lines[i]:
if "usage=" in lines[i]:
(key, prefix, unit_usage, comment) = parse_attribute(lines[i])
assert(unit_id)
usage[unit_id] = unit_usage