summaryrefslogtreecommitdiff
path: root/apt
diff options
context:
space:
mode:
Diffstat (limited to 'apt')
-rw-r--r--apt/debfile.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt/debfile.py b/apt/debfile.py
index 06854cf2..f969f485 100644
--- a/apt/debfile.py
+++ b/apt/debfile.py
@@ -62,7 +62,8 @@ class DebPackage(object):
self.filename = filename
self._debfile = apt_inst.DebFile(open(self.filename))
control = self._debfile.control.extractdata("control")
- self._sections = apt_pkg.TagSection(control)
+ # hm, 'replace' is probably better but python2.6 test fail with that
+ self._sections = apt_pkg.TagSection(control.decode("UTF-8", 'ignore'))
self.pkgname = self._sections["Package"]
def __getitem__(self, key):