[ARVADOS] updated: 1.3.0-2098-ga1a1e1b9e
Git user
git at public.arvados.org
Tue Jan 21 19:19:59 UTC 2020
Summary of changes:
build/run-library.sh | 4 +---
services/fuse/arvados_version.py | 17 ++++++++++++++++-
2 files changed, 17 insertions(+), 4 deletions(-)
via a1a1e1b9e28c470c8efb27ea290ba00d48c520f2 (commit)
from eaebd5b26a34d1fcefb7f830b53c5eea6490dbf3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit a1a1e1b9e28c470c8efb27ea290ba00d48c520f2
Author: Peter Amstutz <peter.amstutz at curii.com>
Date: Tue Jan 21 14:18:25 2020 -0500
FUSE also needs version from latest(sdk, fuse)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>
diff --git a/build/run-library.sh b/build/run-library.sh
index f09071cee..5b1dde46a 100755
--- a/build/run-library.sh
+++ b/build/run-library.sh
@@ -10,8 +10,6 @@
# older packages.
LICENSE_PACKAGE_TS=20151208015500
-librarydir=`dirname "$(readlink -f "$0")"`
-
if [[ -z "$ARVADOS_BUILDING_VERSION" ]]; then
RAILS_PACKAGE_ITERATION=1
else
@@ -59,7 +57,7 @@ version_from_git() {
local git_ts git_hash
declare $(format_last_commit_here "git_ts=%ct git_hash=%h" "$subdir")
- ARVADOS_BUILDING_VERSION="$($librarydir/version-at-commit.sh $git_hash)"
+ ARVADOS_BUILDING_VERSION="$($WORKSPACE/build/version-at-commit.sh $git_hash)"
echo "$ARVADOS_BUILDING_VERSION"
}
diff --git a/services/fuse/arvados_version.py b/services/fuse/arvados_version.py
index 9aabff429..0c653694f 100644
--- a/services/fuse/arvados_version.py
+++ b/services/fuse/arvados_version.py
@@ -7,8 +7,23 @@ import time
import os
import re
+SETUP_DIR = os.path.dirname(os.path.abspath(__file__))
+
+def choose_version_from():
+ sdk_ts = subprocess.check_output(
+ ['git', 'log', '--first-parent', '--max-count=1',
+ '--format=format:%ct', os.path.join(SETUP_DIR, "../../sdk/python")]).strip()
+ cwl_ts = subprocess.check_output(
+ ['git', 'log', '--first-parent', '--max-count=1',
+ '--format=format:%ct', SETUP_DIR]).strip()
+ if int(sdk_ts) > int(cwl_ts):
+ getver = os.path.join(SETUP_DIR, "../../sdk/python")
+ else:
+ getver = SETUP_DIR
+ return getver
+
def git_version_at_commit():
- curdir = os.path.dirname(os.path.abspath(__file__))
+ curdir = choose_version_from()
myhash = subprocess.check_output(['git', 'log', '-n1', '--first-parent',
'--format=%H', curdir]).strip()
myversion = subprocess.check_output([curdir+'/../../build/version-at-commit.sh', myhash]).strip().decode()
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list