提交 3675b979 编写于 作者: L Luca Falavigna

Define Britney changelog file from suite table

Signed-off-by: NLuca Falavigna <dktrkranz@debian.org>
上级 d18a7b96
......@@ -470,8 +470,3 @@ Common
// The default number of threads for multithreading parts of dak:
ThreadCount 16;
}
Changelogs
{
Britney "/srv/ftp-master.debian.org/ftp/dists/testing/ChangeLog";
}
......@@ -99,6 +99,13 @@ def britney_changelog(packages, suite, session):
old = {}
current = {}
try:
q = session.execute("""SELECT britney_changelog FROM suite
WHERE id = :suiteid""", {'suiteid': suite.suite_id})
brit_file = q.fetchone()[0]
except:
return
q = session.execute("""SELECT s.source, s.version, sa.id
FROM source s, src_associations sa
WHERE sa.suite = :suiteid
......@@ -129,7 +136,7 @@ def britney_changelog(packages, suite, session):
q = session.execute(query)
pu = None
brit = utils.open_file(Config()["Changelogs::Britney"], 'w')
brit = utils.open_file(brit_file, 'w')
for u in q:
if pu and pu != u[0]:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册