From 7c01a8da62370a22a929bd81f7a04861c8447b71 Mon Sep 17 00:00:00 2001 From: Kenneth Geisshirt Date: Mon, 11 Jun 2018 15:06:35 +0200 Subject: [PATCH] Revert "Revert the way to retrieve the sync sha1" --- scripts/download-realm.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/download-realm.js b/scripts/download-realm.js index 869a24f7..f2513a1b 100644 --- a/scripts/download-realm.js +++ b/scripts/download-realm.js @@ -195,9 +195,9 @@ function getSyncRequirements(dependencies, options, required = {}) { // flavor is ignored since we only publish Release mode required.SYNC_ARCHIVE = `realm-sync-Release-v${dependencies.REALM_SYNC_VERSION}-Linux-devel.tar.gz`; return getCoreRequirements(dependencies, options, required) - .then(() => getSyncCommitSha(dependencies.REALM_SYNC_VERSION)) - .then(sha => { - required.SYNC_SERVER_FOLDER += `/sha-version/${sha}`; + .then(() => { + const private_dependencies = ini.parse(fs.readFileSync(path.resolve(__dirname, '../../dependencies.list'), 'utf8')); + required.SYNC_SERVER_FOLDER += `/sha-version/${private_dependencies.REALM_SYNC_SHA}`; return required; }); default: