X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fqueue.py;h=b869e04fa3fa952f59180b1df2125b3d991554bf;hb=2a10967af5974e4fa513d029fb995e122d90501a;hp=9dd2702ca02aa296071f768cd7764c7c4e9f37cf;hpb=3f0972f87f2dc1c63773eaf1c7d5e4caa81aa109;p=dak.git diff --git a/daklib/queue.py b/daklib/queue.py index 9dd2702c..b869e04f 100644 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -41,8 +41,6 @@ from types import * from sqlalchemy.sql.expression import desc from sqlalchemy.orm.exc import NoResultFound -import yaml - from dak_exceptions import * from changes import * from regexes import * @@ -188,6 +186,7 @@ def edit_note(note, upload, session, trainee=False): return 0 comment = NewComment() + comment.policy_queue = upload.policy_queue comment.package = upload.changes.source comment.version = upload.changes.version comment.comment = newnote @@ -200,7 +199,7 @@ def edit_note(note, upload, session, trainee=False): # FIXME: Should move into the database # suite names DMs can upload to -dm_suites = ['unstable', 'experimental', 'squeeze-backports'] +dm_suites = ['unstable', 'experimental', 'squeeze-backports','squeeze-backports-sloppy', 'wheezy-backports'] def get_newest_source(source, session): 'returns the newest DBSource object in dm_suites' @@ -408,7 +407,7 @@ class Upload(object): return sponsored def check_dm_upload(self, fpr, session): - # Quoth the GR (http://www.debian.org/vote/2007/vote_003): + # Quoth the GR (https://www.debian.org/vote/2007/vote_003): ## none of the uploaded packages are NEW ## none of the packages are being taken over from other source packages for b in self.pkg.changes["binary"].keys():