summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/repoman8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/repoman b/bin/repoman
index a9c05c6c1..772c0da36 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -1600,8 +1600,8 @@ else:
commitmessage+="\n(Portage version: Unknown)"
if myupdates or myremoved:
myfiles = myupdates + myremoved
- commitmessagefile=tempfile.mktemp(".repoman.msg")
- mymsg=open(commitmessagefile,"w")
+ fd, commitmessagefile = tempfile.mkstemp(".repoman.msg")
+ mymsg = os.fdopen(fd, "w")
mymsg.write(commitmessage)
mymsg.close()
@@ -1752,8 +1752,8 @@ else:
if "--pretend" in myoptions:
print "(/usr/bin/cvs -q commit -F "+commitmessagefile+")"
else:
- commitmessagefile = tempfile.mktemp(".repoman.msg")
- mymsg=open(commitmessagefile,"w")
+ fd, commitmessagefile = tempfile.mkstemp(".repoman.msg")
+ mymsg = os.fdopen(fd, "w")
mymsg.write(commitmessage)
if signed:
mymsg.write("\n (Signed Manifest commit)")