]> git.decadent.org.uk Git - dak.git/commitdiff
Define changelogs export path into projectb
authorLuca Falavigna <dktrkranz@debian.org>
Sat, 25 Sep 2010 13:04:20 +0000 (13:04 +0000)
committerLuca Falavigna <dktrkranz@debian.org>
Sun, 3 Oct 2010 12:39:18 +0000 (12:39 +0000)
Signed-off-by: Luca Falavigna <dktrkranz@debian.org>
config/debian/dak.conf
dak/make_changelog.py
daklib/config.py

index 192a039b29f16bc6ed234aafbaad3e32f745ec6a..58c47fbc70e6e718caf30234b2b1556d4fb74f52 100644 (file)
@@ -475,5 +475,4 @@ Changelogs
 {
   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";
 }
index 2f85c89b6eefa309dfe088c0fa567fbef0655d99..69e96d650399bbff54ce70ec5adb48c1dd75b093 100755 (executable)
@@ -58,6 +58,7 @@ from re import split
 from shutil import rmtree
 from daklib.dbconn import *
 from daklib import utils
+from daklib.config import Config
 
 ################################################################################
 
@@ -260,6 +261,7 @@ def export_files(session, pool, clpool, temppath):
 
 def main():
     Cnf = utils.get_conf()
+    cnf = Config()
     Arguments = [('h','help','Make-Changelog::Options::Help'),
                  ('s','suite','Make-Changelog::Options::Suite','HasArg'),
                  ('b','base-suite','Make-Changelog::Options::Base-Suite','HasArg'),
@@ -291,7 +293,10 @@ def main():
     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:
index 1c3f92ba5d41ec5b4bc9a64301be8bb1a23512a6..932df6b53c685a8149a53774b60f3299a4ba82d6 100755 (executable)
@@ -108,7 +108,8 @@ class Config(object):
         """
         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])))