Chromium Code Reviews| Index: checkout.py |
| =================================================================== |
| --- checkout.py (revision 211180) |
| +++ checkout.py (working copy) |
| @@ -620,7 +620,12 @@ |
| cmd = ['apply', '--index', '-p%s' % p.patchlevel] |
| if verbose: |
| cmd.append('--verbose') |
| + new_tmpdir = tempfile.mkdtemp('pfix') |
| + old_tmpdir = os.environ['TMPDIR'] |
|
Isaac (away)
2013/07/12 04:03:42
are you sure this environment variable exists?
groby-ooo-7-16
2013/07/12 04:16:16
Doesn't matter if it exists - according to the pat
|
| + os.environ['TMPDIR'] = new_tmpdir |
| stdout.append(self._check_output_git(cmd, stdin=p.get(True))) |
| + os.environ['TMPDIR'] = old_tmpdir |
| + shutil.rmtree(new_tmpdir) |
|
Isaac (away)
2013/07/12 04:03:42
this should be a try finally (with rmtree in the f
groby-ooo-7-16
2013/07/12 04:16:16
Done.
|
| for name, value in p.svn_properties: |
| # Ignore some known auto-props flags through .subversion/config, |
| # bails out on the other ones. |