[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] Remove copychanges from dak.conf



Signed-off-by: Joerg Jaspert <joerg@debian.org>
---
 config/debian/dak.conf |    1 -
 daklib/queue.py        |    7 +++----
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/config/debian/dak.conf b/config/debian/dak.conf
index 0ba61e3..a4dd963 100644
--- a/config/debian/dak.conf
+++ b/config/debian/dak.conf
@@ -205,7 +205,6 @@ Suite
 	  contrib;
 	  non-free;
 	};
-	CopyChanges "dists/proposed-updates/";
 	CommentsDir "/srv/ftp-master.debian.org/queue/p-u-new/COMMENTS/";
 	OverrideSuite "stable";
 	ValidTime 604800; // 7 days
diff --git a/daklib/queue.py b/daklib/queue.py
index c379b0b..e3874b6 100755
--- a/daklib/queue.py
+++ b/daklib/queue.py
@@ -2051,10 +2051,9 @@ distribution."""
             stats.accept_bytes += float(entry["size"])
 
         # Copy the .changes file across for suite which need it.
-        copy_changes = {}
-        for suite_name in self.pkg.changes["distribution"].keys():
-            if cnf.has_key("Suite::%s::CopyChanges" % (suite_name)):
-                copy_changes[cnf["Suite::%s::CopyChanges" % (suite_name)]] = ""
+        copy_changes = dict([(x.copychanges, '')
+                             for x in session.query(Suite).filter(Suite.suite_name.in_([self.pkg.changes["distribution"].keys()])).all()
+                             if x.copychanges is not None])
 
         for dest in copy_changes.keys():
             utils.copy(self.pkg.changes_file, os.path.join(cnf["Dir::Root"], dest))
-- 
1.5.6.5



Reply to: