X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dev.git/blobdiff_plain/643e51926cb33b020b1a5b2726239e96a754b65f..ab69fa47de5126ea8147c31fd98d995672661131:/invirt-submit-build diff --git a/invirt-submit-build b/invirt-submit-build index 713f3da..42446b0 100755 --- a/invirt-submit-build +++ b/invirt-submit-build @@ -35,7 +35,7 @@ def main(): uuid.uuid4())) try: - validateBuild(pocket, package, commit) + b.validateBuild(pocket, package, commit) except b.InvalidBuild, e: print >>sys.stderr, "E: %s" % e sys.exit(1) @@ -44,7 +44,7 @@ def main(): # 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() - q = os.fdopen(q_fd) + q = os.fdopen(q_fd, 'r+') print >>q, "%s %s %s %s" % (pocket, package, commit, principal) os.rename(q_name, q_path)