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