diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-09-02 16:55:43 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-09-02 16:55:43 +0200 |
| commit | 0d622864bf45b2826335b3be31330829f43db7cd (patch) | |
| tree | 96578b8054647465b00eda526b4a5f3ca58523d8 /apt | |
| parent | 96476d01e881f52d53a70f1ae700594a0f321056 (diff) | |
| download | python-apt-0d622864bf45b2826335b3be31330829f43db7cd.tar.gz | |
merged patch from Samuel Lidén Borell to fix crash if there utf8
in the control file (LP: #624290) and add test
Diffstat (limited to 'apt')
| -rw-r--r-- | apt/debfile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt/debfile.py b/apt/debfile.py index 73f7d88e..1e7a66cc 100644 --- a/apt/debfile.py +++ b/apt/debfile.py @@ -66,7 +66,7 @@ class DebPackage(object): self._debfile = apt_inst.DebFile(open(self.filename)) control = self._debfile.control.extractdata("control") # hm, 'replace' is probably better but python2.6 test fail with that - self._sections = apt_pkg.TagSection(control.decode("UTF-8", 'ignore')) + self._sections = apt_pkg.TagSection(control) self.pkgname = self._sections["Package"] def __getitem__(self, key): |
