[yocto] [opkg-utils][PATCH 18/22] opkg.py: cast lines from controlfile as string
Martin Jansa
martin.jansa at gmail.com
Thu Mar 29 15:22:52 PDT 2012
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
opkg.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/opkg.py b/opkg.py
index 84583be..6c39616 100644
--- a/opkg.py
+++ b/opkg.py
@@ -206,7 +206,7 @@ class Package:
while 1:
if not line: break
line = line.rstrip()
- lineparts = re.match(r'([\w-]*?):\s*(.*)', line)
+ lineparts = re.match(r'([\w-]*?):\s*(.*)', str(line))
if lineparts:
name = lineparts.group(1).lower()
value = lineparts.group(2)
--
1.7.8.5
More information about the yocto
mailing list