From cc6ef10f9e5994c51e68622d964a2f798ae801b9 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Sun, 19 Sep 2010 16:32:21 +0200 Subject: [PATCH] Remove copychanges from dak.conf Signed-off-by: Joerg Jaspert --- 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 0ba61e39..a4dd9631 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 c379b0bc..e3874b62 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)) -- 2.39.2