summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJF Bastien <jfb@chromium.org>2016-01-17 16:10:12 -0800
committerJF Bastien <jfb@chromium.org>2016-01-17 16:10:12 -0800
commitf99d4a1f30dfd1892c88ca5d9cf38d21836280b4 (patch)
tree2dc3cff6a916da738d9d32f1f15940ac3ae6b808
parent1f21f5769429f81acfe0b6d316b27c743e000671 (diff)
downloadbinaryen-f99d4a1f30dfd1892c88ca5d9cf38d21836280b4.tar.gz
binaryen-f99d4a1f30dfd1892c88ca5d9cf38d21836280b4.tar.bz2
binaryen-f99d4a1f30dfd1892c88ca5d9cf38d21836280b4.zip
Improve update.py diagnostic
-rwxr-xr-xupdate.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/update.py b/update.py
index 7b949d895..4bc95b5ac 100755
--- a/update.py
+++ b/update.py
@@ -27,17 +27,24 @@ REVISION_PATH = os.path.join(BASE_DIR, 'revision')
TORTURE_TAR = 'wasm-torture-s-%s.tbz2'
+def current_revision():
+ with open(REVISION_PATH, 'r') as f:
+ return f.read()
+
+
def write_revision(revision):
with open(REVISION_PATH, 'w') as f:
f.write(revision)
def run(force_latest, override_build):
+ print 'Updating git submodules'
subprocess.check_call(['git', 'submodule', 'sync', '--quiet'])
subprocess.check_call(['git', 'submodule', 'init', '--quiet'])
subprocess.check_call(['git', 'submodule', 'update', '--quiet'])
subprocess.check_call(['git', 'submodule', 'foreach',
'git', 'pull', 'origin', 'master', '--quiet'])
+ print 'Updating from the waterfall, current revision', current_revision()
updates = 0
revision = (override_build if override_build else
scripts.storage.download_revision(force_latest=force_latest))