diff options
author | Dan Pasanen <dan.pasanen@gmail.com> | 2014-12-21 23:18:16 -0600 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2015-10-06 17:58:53 -0700 |
commit | 17341b1dbf3e2b4c1c594aeb891489b13f92d282 (patch) | |
tree | 367521e4aa99fe75b7209f6a1e10325fce454ec0 /tools/releasetools/common.py | |
parent | cf2bdb62ffb3db1abb7d2fa8e01e1dd2e528ba05 (diff) | |
download | build-17341b1dbf3e2b4c1c594aeb891489b13f92d282.zip build-17341b1dbf3e2b4c1c594aeb891489b13f92d282.tar.gz build-17341b1dbf3e2b4c1c594aeb891489b13f92d282.tar.bz2 |
releasetools: clean up residual targetfiles-* dirs in /tmp/
Change-Id: I3792307663f8a85513e102c8bf3d78cf4e514760
Diffstat (limited to 'tools/releasetools/common.py')
-rw-r--r-- | tools/releasetools/common.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/releasetools/common.py b/tools/releasetools/common.py index cdb5b7f..e37b0f8 100644 --- a/tools/releasetools/common.py +++ b/tools/releasetools/common.py @@ -476,6 +476,7 @@ def UnzipTemp(filename, pattern=None): OPTIONS.tempfiles.append(tmp) def unzip_to_dir(filename, dirname): + cmd = ["rm", "-rf", dirname + filename, "targetfiles-*"] cmd = ["unzip", "-o", "-q", filename, "-d", dirname] if pattern is not None: cmd.append(pattern) |