Bug 428650, patcher in fast mode uses a lot of space in /tmp, r=ccooper
authornrthomas@gmail.com
Thu, 24 Apr 2008 08:14:57 -0700
changeset 14662 b8a1917a691dc8ef7e9416b82088a8e36f7da046
parent 14661 d86c935da894ebf53b08ef8b87ac68dbf3d2df8b
child 14663 8265322e0f791b189489a33343d36d25138ee4a1
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersccooper
bugs428650
milestone1.9pre
Bug 428650, patcher in fast mode uses a lot of space in /tmp, r=ccooper
tools/update-packaging/make_incremental_updates.py
--- a/tools/update-packaging/make_incremental_updates.py
+++ b/tools/update-packaging/make_incremental_updates.py
@@ -340,17 +340,17 @@ def decode_filename(filename):
 
 def create_partial_patches(patches):
     """ Given the patches generates a set of partial patches"""
     shas = {}
 
     work_dir_root = None
     metadata = []
     try:
-        work_dir_root = tempfile.mkdtemp()
+        work_dir_root = tempfile.mkdtemp('-fastmode', 'tmp', os.getcwd())
         print "Building patches using work dir: %s" % (work_dir_root)
  
         # Iterate through every patch set in the patch file
         patch_num = 1
         for patch in patches:
             startTime = time.time()
 
             from_filename,to_filename,patch_filename,forced_updates = patch.split(",")