]> git.decadent.org.uk Git - dak.git/commitdiff
fix for python-debian deb822 generator wierdness
authorMike O'Connor <stew@vireo.org>
Fri, 13 Mar 2009 15:41:42 +0000 (11:41 -0400)
committerMike O'Connor <stew@vireo.org>
Fri, 13 Mar 2009 15:41:42 +0000 (11:41 -0400)
Signed-off-by: Mike O'Connor <stew@vireo.org>
daklib/binary.py

index 136dfed6150a38ced5275cc0f1aa0734edaf3eb5..5290410254214be9e105fc41819d346e35769827 100755 (executable)
@@ -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: