diff options
author | JF Bastien <jfb@chromium.org> | 2016-01-17 14:33:04 -0800 |
---|---|---|
committer | JF Bastien <jfb@chromium.org> | 2016-01-17 14:33:04 -0800 |
commit | 32228f3c5b9eec4c9ec8f575c3948efe7013c1d8 (patch) | |
tree | ae2b1b17e30a640ede94ff17191942ec8e68e855 /scripts/storage.py | |
parent | c01ef410c9c3df8c12504f365e04190935ac2376 (diff) | |
download | binaryen-32228f3c5b9eec4c9ec8f575c3948efe7013c1d8.tar.gz binaryen-32228f3c5b9eec4c9ec8f575c3948efe7013c1d8.tar.bz2 binaryen-32228f3c5b9eec4c9ec8f575c3948efe7013c1d8.zip |
Remove older tarfiles properly.
Diffstat (limited to 'scripts/storage.py')
-rwxr-xr-x | scripts/storage.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/storage.py b/scripts/storage.py index b15c76855..09a777135 100755 --- a/scripts/storage.py +++ b/scripts/storage.py @@ -43,7 +43,7 @@ def download_tar(tar_pattern, directory, revision): with open(revision_tar_path, 'w+') as f: f.write(urllib2.urlopen(STORAGE_BASE + tar_pattern % revision).read()) # Remove any previous tarfiles. - for older_tar in glob.glob(tar_path): + for older_tar in glob.glob(tar_path % '*'): if older_tar != revision_tar_path: os.path.remove(older_tar) return revision_tar_path |