From 3f09afb2e5398920f7c503902adac48a67f330c4 Mon Sep 17 00:00:00 2001 From: Mike O'Connor Date: Fri, 13 Mar 2009 11:41:42 -0400 Subject: [PATCH] fix for python-debian deb822 generator wierdness Signed-off-by: Mike O'Connor --- daklib/binary.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- 2.39.5