summaryrefslogtreecommitdiff
path: root/scripts/oe-pkgdata-util
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-02-11 10:46:25 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-14 08:40:36 +0000
commit77411c775c4bf3fa7897985916c2d4a4af2dda47 (patch)
treef4ca2f1d54b52764623b44156288db0cc675ebd1 /scripts/oe-pkgdata-util
parente13e53a30372a4cb3eabdb1b2199ff64c3e85cc3 (diff)
downloadopenembedded-core-77411c775c4bf3fa7897985916c2d4a4af2dda47.tar.gz
openembedded-core-77411c775c4bf3fa7897985916c2d4a4af2dda47.tar.bz2
openembedded-core-77411c775c4bf3fa7897985916c2d4a4af2dda47.zip
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 <paul.eggleton@linux.intel.com>
Diffstat (limited to 'scripts/oe-pkgdata-util')
-rwxr-xr-xscripts/oe-pkgdata-util2
1 files changed, 1 insertions, 1 deletions
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))