summaryrefslogtreecommitdiffstats
path: root/patches/opkg-utils-r4747/0019-opkg.py-cast-lines-from-controlfile-as-string.patch
blob: e2ee06094e7467f66b1dd23259f7a6d0f3e7cc07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Martin Jansa <Martin.Jansa@gmail.com>
Date: Thu, 29 Mar 2012 16:43:04 +0200
Subject: [PATCH] opkg.py: cast lines from controlfile as string

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 opkg.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)