Signed-off-by: Luca Falavigna <dktrkranz@debian.org>
{
Testing "/srv/release.debian.org/tools/trille/current-testing";
Britney "/srv/ftp-master.debian.org/ftp/dists/testing/ChangeLog";
{
Testing "/srv/release.debian.org/tools/trille/current-testing";
Britney "/srv/ftp-master.debian.org/ftp/dists/testing/ChangeLog";
- Export "/srv/ftp-master.debian.org/export/changelogs";
from shutil import rmtree
from daklib.dbconn import *
from daklib import utils
from shutil import rmtree
from daklib.dbconn import *
from daklib import utils
+from daklib.config import Config
################################################################################
################################################################################
def main():
Cnf = utils.get_conf()
def main():
Cnf = utils.get_conf()
Arguments = [('h','help','Make-Changelog::Options::Help'),
('s','suite','Make-Changelog::Options::Suite','HasArg'),
('b','base-suite','Make-Changelog::Options::Base-Suite','HasArg'),
Arguments = [('h','help','Make-Changelog::Options::Help'),
('s','suite','Make-Changelog::Options::Suite','HasArg'),
('b','base-suite','Make-Changelog::Options::Base-Suite','HasArg'),
if testing:
display_changes(testing_summary(Cnf['Changelogs::Testing'], session), 1)
elif export:
if testing:
display_changes(testing_summary(Cnf['Changelogs::Testing'], session), 1)
elif export:
- export_files(session, Cnf['Dir::Pool'], Cnf['Changelogs::Export'], Cnf['Dir::TempPath'])
+ if cnf.exportpath:
+ export_files(session, Cnf['Dir::Pool'], cnf.exportpath, Cnf['Dir::TempPath'])
+ else:
+ utils.fubar('No changelog export path defined')
elif binnmu:
display_changes(get_binary_uploads(suite, base_suite, session), 3)
else:
elif binnmu:
display_changes(get_binary_uploads(suite, base_suite, session), 3)
else:
"""
for field in [('db_revision', None, int),
('defaultsuitename', 'unstable', str),
"""
for field in [('db_revision', None, int),
('defaultsuitename', 'unstable', str),
- ('signingkeyids', '', str)
+ ('signingkeyids', '', str),
+ ('exportpath', '', str)
]:
setattr(self, 'get_%s' % field[0], lambda x=None: self.get_db_value(field[0], field[1], field[2]))
setattr(Config, '%s' % field[0], property(fget=getattr(self, 'get_%s' % field[0])))
]:
setattr(self, 'get_%s' % field[0], lambda x=None: self.get_db_value(field[0], field[1], field[2]))
setattr(Config, '%s' % field[0], property(fget=getattr(self, 'get_%s' % field[0])))