diff options
author | Sam Mortimer <sam@mortimer.me.uk> | 2017-01-17 12:30:20 -0800 |
---|---|---|
committer | Tom Powell <zifnab@zifnab06.net> | 2017-03-12 19:57:13 +0000 |
commit | 927d262dfd2769f5f5800f37cbe165ba28965dab (patch) | |
tree | 560f3081a44502b8ff8e63423c585a7aa0b597bd /tools/releasetools | |
parent | d17a74eb49e567c5f776fe491942069383b2b94c (diff) | |
download | build-927d262dfd2769f5f5800f37cbe165ba28965dab.zip build-927d262dfd2769f5f5800f37cbe165ba28965dab.tar.gz build-927d262dfd2769f5f5800f37cbe165ba28965dab.tar.bz2 |
build sign_target_files_apks.py: clean tmp on exit
Currently, this script creates and leaves nearly 2GB in tmp
per run. Clean up on exit.
Change-Id: I4247dd2508e9d27de57c611c18e70800d7a47f33
(cherry picked from commit 462425468899f264155a3413aab75a099d1bbd25)
Diffstat (limited to 'tools/releasetools')
-rwxr-xr-x | tools/releasetools/sign_target_files_apks.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/releasetools/sign_target_files_apks.py b/tools/releasetools/sign_target_files_apks.py index 54460e6..e3bcbbc 100755 --- a/tools/releasetools/sign_target_files_apks.py +++ b/tools/releasetools/sign_target_files_apks.py @@ -531,3 +531,5 @@ if __name__ == '__main__': print(" ERROR: %s" % e) print() sys.exit(1) + finally: + common.Cleanup() |