diff options
author | JF Bastien <jfb@chromium.org> | 2016-01-16 20:08:36 -0800 |
---|---|---|
committer | JF Bastien <jfb@chromium.org> | 2016-01-16 20:08:36 -0800 |
commit | 74b3798652f65fbbbe94b9aac2cb4f0fb8ccea09 (patch) | |
tree | 25954fa5dbdabcfcf0e79775d00f9282e154f621 /update.py | |
parent | 7dd053aa3cc99e63b3be57514c28ac2b94932e2e (diff) | |
download | binaryen-74b3798652f65fbbbe94b9aac2cb4f0fb8ccea09.tar.gz binaryen-74b3798652f65fbbbe94b9aac2cb4f0fb8ccea09.tar.bz2 binaryen-74b3798652f65fbbbe94b9aac2cb4f0fb8ccea09.zip |
Make the untar API more intuitive
As discussed in #112.
Diffstat (limited to 'update.py')
-rwxr-xr-x | update.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -25,7 +25,6 @@ import scripts.support BASE_DIR = os.path.abspath('test') REVISION_PATH = os.path.join(BASE_DIR, 'revision') TORTURE_TAR = 'wasm-torture-s-%s.tbz2' -TORTURE_DIR = os.path.join(BASE_DIR, 'torture-s') def write_revision(revision): @@ -43,7 +42,7 @@ def run(force_latest, override_hash): revision = (override_hash if override_hash else scripts.storage.download_revision(force_latest=force_latest)) downloaded = scripts.storage.download_tar(TORTURE_TAR, BASE_DIR, revision) - updates += scripts.support.untar(downloaded, TORTURE_DIR) + updates += scripts.support.untar(downloaded, BASE_DIR) if updates: # Only update revision if the files it downloaded are different. print 'Updating revision to', revision |