oe-pkgdata-util: fix read-value to handle data with colons in the value
The read-value subcommand was truncating the value if it contained colons, for example FILES_INFO. (From OE-Core rev: 77411c775c4bf3fa7897985916c2d4a4af2dda47) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
1fb1caf15c
commit
0f77efe9ae
|
@ -162,7 +162,7 @@ def read_value(args):
|
|||
with open(pkgdata_file, 'r') as f:
|
||||
for line in f:
|
||||
if line.startswith(valuename + ":"):
|
||||
val = line.split(': ')[1].rstrip()
|
||||
val = line.split(': ', 1)[1].rstrip()
|
||||
return val
|
||||
|
||||
logger.debug("read-value('%s', '%s' '%s'" % (args.pkgdata_dir, args.valuename, packages))
|
||||
|
|
Loading…
Reference in New Issue