From 7dd530ec0cfd871d4b2b21c88f17aebca29b3dcd Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Fri, 2 Jul 2010 15:25:05 +0200 Subject: apt/debfile.py: DebFile needs a open file --- apt/debfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apt/debfile.py b/apt/debfile.py index 83a5d68c..528cd311 100644 --- a/apt/debfile.py +++ b/apt/debfile.py @@ -58,7 +58,7 @@ class DebPackage(object): def open(self, filename): """ open given debfile """ self.filename = filename - self._debfile = apt_inst.DebFile(self.filename) + self._debfile = apt_inst.DebFile(open(self.filename)) control = self._debfile.control.extractdata("control") self._sections = apt_pkg.TagSection(control) self.pkgname = self._sections["Package"] -- cgit v1.2.3