[dak/master] Use changelog export path derived from projectb
---
dak/make_changelog.py | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/dak/make_changelog.py b/dak/make_changelog.py
index 2d52d06..b904dea 100755
--- a/dak/make_changelog.py
+++ b/dak/make_changelog.py
@@ -57,7 +57,6 @@ from shutil import rmtree
from yaml import safe_dump
from daklib.dbconn import *
from daklib import utils
-from daklib.config import Config
from daklib.contents import UnpackedSource
from daklib.regexes import re_no_epoch
@@ -293,7 +292,6 @@ def generate_export_filelist(clpool):
def main():
Cnf = utils.get_conf()
- cnf = Config()
Arguments = [('h','help','Make-Changelog::Options::Help'),
('a','archive','Make-Changelog::Options::Archive','HasArg'),
('s','suite','Make-Changelog::Options::Suite','HasArg'),
@@ -324,9 +322,9 @@ def main():
session = DBConn().session()
if export:
- if cnf.exportpath:
- archive = session.query(Archive).filter_by(archive_name=Options['Archive']).one()
- exportpath = os.path.join(Cnf['Dir::Export'], cnf.exportpath)
+ (archive, exportpath) = session.query(Archive.archive_name, Archive.changelog). \
+ filter_by(archive_name=Options['Archive']).one()
+ if exportpath:
export_files(session, archive, exportpath, progress)
generate_export_filelist(exportpath)
else:
--
1.7.2.5
Reply to: