From bd24d48805f7c26b135767db1d9ebabdf3342f3e Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Sat, 17 Mar 2012 16:56:19 +0100 Subject: [PATCH] Allow squeeze-backports for dm Signed-off-by: Joerg Jaspert --- daklib/queue.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/daklib/queue.py b/daklib/queue.py index ccb806e9..8acfb4e7 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -386,8 +386,9 @@ def edit_note(note, upload, session, trainee=False): ############################################################################### +# FIXME: Should move into the database # suite names DMs can upload to -dm_suites = ['unstable', 'experimental'] +dm_suites = ['unstable', 'experimental', 'squeeze-backports'] def get_newest_source(source, session): 'returns the newest DBSource object in dm_suites' @@ -1807,7 +1808,7 @@ class Upload(object): r = get_newest_source(self.pkg.changes["source"], session) if r is None: - rej = "Could not find existing source package %s in unstable or experimental and this is a DM upload" % self.pkg.changes["source"] + rej = "Could not find existing source package %s in the DM allowed suites and this is a DM upload" % self.pkg.changes["source"] self.rejects.append(rej) return -- 2.39.5