X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fqueue_install.py;h=b4b0ee3c705fb49e77daa9c7be1cee9e8dd9763d;hb=ab7ef648bcd71efb08d2f4949abe8ad0ac3251a0;hp=c048f9ef94d7aab6147f1786f4da30fb60241413;hpb=6a04540642478715650bd496d522f42f9f6e7434;p=dak.git diff --git a/daklib/queue_install.py b/daklib/queue_install.py index c048f9ef..b4b0ee3c 100644 --- a/daklib/queue_install.py +++ b/daklib/queue_install.py @@ -61,7 +61,7 @@ def package_to_queue(u, summary, short_summary, queue, chg, session, announce=No u.logger.log(["Moving to %s" % queue.queue_name, u.pkg.changes_file]) u.move_to_queue(queue) - chg.in_queue = queue.policy_queue_id + chg.in_queue_id = queue.policy_queue_id session.add(chg) session.commit() @@ -69,7 +69,7 @@ def package_to_queue(u, summary, short_summary, queue, chg, session, announce=No u.check_override() # Send accept mail, announce to lists and close bugs - if announce and not cnf["Dinstall::Options::No-Mail"]: + if announce: template = os.path.join(cnf["Dir::Templates"], announce) u.update_subst() u.Subst["__SUITE__"] = "" @@ -229,17 +229,16 @@ def acknowledge_new(u, summary, short_summary, chg, session): q = get_policy_queue('new', session) u.move_to_queue(q) - chg.in_queue = q.policy_queue_id + chg.in_queue_id = q.policy_queue_id session.add(chg) session.commit() - if not cnf["Dinstall::Options::No-Mail"]: - print "Sending new ack." - template = os.path.join(cnf["Dir::Templates"], 'process-unchecked.new') - u.update_subst() - u.Subst["__SUMMARY__"] = summary - new_ack_message = utils.TemplateSubst(u.Subst, template) - utils.send_mail(new_ack_message) + print "Sending new ack." + template = os.path.join(cnf["Dir::Templates"], 'process-unchecked.new') + u.update_subst() + u.Subst["__SUMMARY__"] = summary + new_ack_message = utils.TemplateSubst(u.Subst, template) + utils.send_mail(new_ack_message) ################################################################################