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
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'),
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: