We don't want cron.unchecked to do anything while we run process-policy.
Especially not running another process-policy process or moving files
out of queue/accepted/ while we are installing files there.
def do_Approve(): sudo("A", _do_Approve, True)
def _do_Approve():
- # 1. use process-policy to go through the COMMENTS dir
- spawn("dak process-policy embargoed")
- spawn("dak process-policy unembargoed")
-
print "Locking unchecked"
lockfile='/srv/security-master.debian.org/lock/unchecked.lock'
spawn("lockfile -r42 {0}".format(lockfile))