X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=daklib%2Fqueue_install.py;h=5599661bc1fe77530c48b2759962da746865b0ff;hb=29586333f60d53b4a1d4e8c3580ae5c3256c8bd9;hp=c517f53cf1fdc14e7d0822cfc9f466df490e88b8;hpb=49b74803222002220c2b6577624c395c704f3f1d;p=dak.git diff --git a/daklib/queue_install.py b/daklib/queue_install.py index c517f53c..5599661b 100644 --- a/daklib/queue_install.py +++ b/daklib/queue_install.py @@ -33,18 +33,6 @@ from daklib.config import Config ############################################################################### -# q-unapproved hax0ring -QueueInfo = { - "New": { "is": is_new, "process": acknowledge_new }, - "Autobyhand" : { "is" : is_autobyhand, "process": do_autobyhand }, - "Byhand" : { "is": is_byhand, "process": do_byhand }, - "OldStableUpdate" : { "is": is_oldstableupdate, - "process": do_oldstableupdate }, - "StableUpdate" : { "is": is_stableupdate, "process": do_stableupdate }, - "Unembargo" : { "is": is_unembargo, "process": queue_unembargo }, - "Embargo" : { "is": is_embargo, "process": queue_embargo }, -} - def determine_target(u): cnf = Config() @@ -272,15 +260,29 @@ def is_new(u): def acknowledge_new(u, summary, short_summary): cnf = Config() - print "Moving to NEW holding area." + print "Moving to NEW queue." u.logger.log(["Moving to new", u.pkg.changes_file]) u.move_to_dir(cnf["Dir::Queue::New"], perms=0640, changesperms=0644) - if not Options["No-Mail"]: + 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) + +################################################################################ + +# q-unapproved hax0ring +QueueInfo = { + "New": { "is": is_new, "process": acknowledge_new }, + "Autobyhand" : { "is" : is_autobyhand, "process": do_autobyhand }, + "Byhand" : { "is": is_byhand, "process": do_byhand }, + "OldStableUpdate" : { "is": is_oldstableupdate, + "process": do_oldstableupdate }, + "StableUpdate" : { "is": is_stableupdate, "process": do_stableupdate }, + "Unembargo" : { "is": is_unembargo, "process": queue_unembargo }, + "Embargo" : { "is": is_embargo, "process": queue_embargo }, +}