# HG changeset patch # User ymh # Date 1346280543 -7200 # Node ID 08f962473d45453bfea4ee6d47f7f5f592fb1e60 # Parent 6a7fa48480d021d9809bdaa6220233c8749c47c3 add option to mktemp diff -r 6a7fa48480d0 -r 08f962473d45 sbin/sync/fabfile.py --- a/sbin/sync/fabfile.py Wed Aug 29 23:39:37 2012 +0200 +++ b/sbin/sync/fabfile.py Thu Aug 30 00:49:03 2012 +0200 @@ -31,7 +31,7 @@ activate_path = os.path.join(remotevirtualenvpath, "bin/activate") res = "" with prefix("source \"%s\"" % activate_path), prefix("export PYTHONPATH=\"%s\"" % remotepath), cd(remotepath): - tempfilepath = run("mktemp ldtplatform.XXXXXX") + tempfilepath = run("mktemp --tmpdir ldtplatform.XXXXXX") with settings(warn_only=True): run("echo \"import os\" > %s" % (tempfilepath)) map(lambda str: run("echo \"%s\" >> %s" % (str, tempfilepath)),