|
@@ -16,7 +16,6 @@ import optparse
|
|
|
import os
|
|
|
import pprint
|
|
|
import re
|
|
|
-import shutil
|
|
|
import subprocess
|
|
|
import sys
|
|
|
import tempfile
|
|
@@ -1143,16 +1142,7 @@ def checkout(options, git_slns, specs, revisions, step_text):
|
|
|
properties['git_cache_epoch'] = cache_epoch
|
|
|
|
|
|
usage = disk_usage()
|
|
|
- # successfully checked out. remove cleanup_dir to get free disk space.
|
|
|
- if os.path.exists(cleanup_dir):
|
|
|
- prev_usage = usage
|
|
|
- print('Removing cleanup_dir %s' % cleanup_dir)
|
|
|
- shutil.rmtree(cleanup_dir, ignore_errors=True)
|
|
|
- usage = disk_usage()
|
|
|
- print('Release %dGB (%d%%)' %
|
|
|
- (prev_usage.used_disk_space_gb - usage.used_disk_space_gb,
|
|
|
- prev_usage.percent_used - usage.percent_used))
|
|
|
-
|
|
|
+ # TODO(ukai): remove cleanup_dir if available disk space is small?
|
|
|
step_text = step_text + (' -> [%dGB/%dGB used (%d%%)]' % usage)
|
|
|
|
|
|
# Tell recipes information such as root, got_revision, etc.
|