Merge "releasetools: Move one case of mkdtemp() to common.MakeTempDir()."

am: a7a5e15f72

Change-Id: I8d6ca18c251ffb6d794ce5859b05de8b3c43bcfc
This commit is contained in:
Tao Bao 2018-02-28 21:24:53 +00:00 committed by android-build-merger
commit fc0bb788ed
1 changed files with 1 additions and 3 deletions

View File

@ -1535,9 +1535,7 @@ class BlockDifference(object):
b = blockimgdiff.BlockImageDiff(tgt, src, threads=OPTIONS.worker_threads,
version=self.version,
disable_imgdiff=self.disable_imgdiff)
tmpdir = tempfile.mkdtemp()
OPTIONS.tempfiles.append(tmpdir)
self.path = os.path.join(tmpdir, partition)
self.path = os.path.join(MakeTempDir(), partition)
b.Compute(self.path)
self._required_cache = b.max_stashed_size
self.touched_src_ranges = b.touched_src_ranges