X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dev.git/blobdiff_plain/66f2a7f0bd561c11302e9998caed0b34a4cbf4bb..8d17ee545fb08a3a87f5f37d7f505d789f2abb7e:/invirt-submit-build diff --git a/invirt-submit-build b/invirt-submit-build index caa949f..7115bf6 100755 --- a/invirt-submit-build +++ b/invirt-submit-build @@ -43,9 +43,10 @@ def main(): # To keep from triggering the Invirtibuilder before we've actually # written the file out, first write the queue entry to a temporary # file, and then move it into the queue directory. - q = tempfile.NamedTemporaryFile(delete=False) + q_fd, q_name = tempfile.mkstemp() + q = os.fdopen(q_fd, 'r+') print >>q, "%s %s %s %s" % (pocket, package, commit, principal) - os.rename(q.name, q_path) + os.rename(q_name, q_path) if __name__ == '__main__':