From 927d262dfd2769f5f5800f37cbe165ba28965dab Mon Sep 17 00:00:00 2001 From: Sam Mortimer Date: Tue, 17 Jan 2017 12:30:20 -0800 Subject: 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) --- tools/releasetools/sign_target_files_apks.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/releasetools') 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() -- cgit v1.1