From f99d4a1f30dfd1892c88ca5d9cf38d21836280b4 Mon Sep 17 00:00:00 2001 From: JF Bastien Date: Sun, 17 Jan 2016 16:10:12 -0800 Subject: Improve update.py diagnostic --- update.py | 7 +++++++ 1 file changed, 7 insertions(+) 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)) -- cgit v1.2.3