提交 3f09afb2 编写于 作者: M Mike O'Connor

fix for python-debian deb822 generator wierdness

Signed-off-by: NMike O'Connor <stew@vireo.org>
上级 dfddcddd
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册