[oe-commits] Paul Eggleton : oe-pkgdata-util: fix read-value to handle data with colons in the value

git at git.openembedded.org git at git.openembedded.org
Sat Feb 14 08:41:59 UTC 2015


Module: openembedded-core.git
Branch: master
Commit: 77411c775c4bf3fa7897985916c2d4a4af2dda47
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=77411c775c4bf3fa7897985916c2d4a4af2dda47

Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date:   Wed Feb 11 10:46:25 2015 +0000

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 at linux.intel.com>

---

 scripts/oe-pkgdata-util | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/oe-pkgdata-util b/scripts/oe-pkgdata-util
index 2baa9f4..1603dfb 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))



More information about the Openembedded-commits mailing list