From 77411c775c4bf3fa7897985916c2d4a4af2dda47 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Wed, 11 Feb 2015 10:46:25 +0000 Subject: 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. Signed-off-by: Paul Eggleton --- scripts/oe-pkgdata-util | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/oe-pkgdata-util') diff --git a/scripts/oe-pkgdata-util b/scripts/oe-pkgdata-util index 2baa9f4c42..1603dfbc2e 100755 --- a/scripts/oe-pkgdata-util +++ b/scripts/oe-pkgdata-util @@ -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)) -- cgit 1.2.3-korg