import sys
import apt_pkg
+import os
from daklib.config import Config
from daklib.dbconn import *
old = {}
current = {}
+ Cnf = utils.get_conf()
+
+ try:
+ q = session.execute("SELECT changelog FROM suite WHERE id = :suiteid", \
+ {'suiteid': suite.suite_id})
+ brit_file = q.fetchone()[0]
+ except:
+ brit_file = None
+
+ if brit_file:
+ brit_file = os.path.join(Cnf['Dir::Root'], brit_file)
+ else:
+ return
q = session.execute("""SELECT s.source, s.version, sa.id
FROM source s, src_associations sa
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]: