# written the file out, first write the queue entry to a temporary
# file, and then move it into the queue directory.
q_fd, q_name = tempfile.mkstemp()
# written the file out, first write the queue entry to a temporary
# file, and then move it into the queue directory.
q_fd, q_name = tempfile.mkstemp()
print >>q, "%s %s %s %s" % (pocket, package, commit, principal)
os.rename(q_name, q_path)
print >>q, "%s %s %s %s" % (pocket, package, commit, principal)
os.rename(q_name, q_path)