From: Paul Eggleton Date: Wed, 11 Feb 2015 10:46:25 +0000 (+0000) Subject: oe-pkgdata-util: fix read-value to handle data with colons in the value X-Git-Tag: 2015-4~438 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=77411c775c4bf3fa7897985916c2d4a4af2dda47;p=openembedded-core.git 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 --- 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))