]> git.pld-linux.org Git - projects/pld-builder.new.git/blobdiff - PLD_Builder/srpm_builder.py
mkstemp returns file descriptor, convert to file object
[projects/pld-builder.new.git] / PLD_Builder / srpm_builder.py
index 5f6d59bd5e9267d5aaa9bd991b711fae6dc8e3d5..d1cee943e1a2dcfaad650c3461ea3fcaacb31912 100644 (file)
@@ -64,7 +64,8 @@ def store_binary_request(r):
     q.write_signed(path.req_queue_signed_file)
     q.unlock()
 
-    (cnt_f, tmpfname) = tempfile.mkstemp(dir=os.path.dirname(path.max_req_no_file))
+    (fdno, tmpfname) = tempfile.mkstemp(dir=os.path.dirname(path.max_req_no_file))
+    cnt_f = os.fdopen(fdno)
     cnt_f.seek(0)
     cnt_f.write("%d\n" % num)
     cnt_f.flush()
This page took 0.103716 seconds and 4 git commands to generate.