From: Mike O'Connor Date: Fri, 13 Mar 2009 15:41:42 +0000 (-0400) Subject: fix for python-debian deb822 generator wierdness X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=3f09afb2e5398920f7c503902adac48a67f330c4;p=dak.git fix for python-debian deb822 generator wierdness Signed-off-by: Mike O'Connor --- diff --git a/daklib/binary.py b/daklib/binary.py index 136dfed6..52904102 100755 --- a/daklib/binary.py +++ b/daklib/binary.py @@ -186,7 +186,8 @@ class Binary(object): if bootstrap_id: result = DBConn().insert_content_paths(bootstrap_id, [tarinfo.name for tarinfo in data if not tarinfo.isdir()]) else: - pkg = deb822.Packages.iter_paragraphs(file(os.path.join(self.tmpdir,'control'))).next() + pkgs = deb822.Packages.iter_paragraphs(file(os.path.join(self.tmpdir,'control'))) + pkg = pkgs.next() result = DBConn().insert_pending_content_paths(pkg, [tarinfo.name for tarinfo in data if not tarinfo.isdir()]) except: