[ARVADOS] updated: 1.3.0-1710-g1c6464fc1
Git user
git at public.curoverse.com
Thu Oct 3 22:02:06 UTC 2019
Summary of changes:
build/run-library.sh | 30 +++++++++++++++++++++++++-----
1 file changed, 25 insertions(+), 5 deletions(-)
via 1c6464fc1b6e3cde61b64fc07308a3934966fe74 (commit)
via b2e1db4f3c44c6f41c37bfebf032526cf09bf9a6 (commit)
from 80c1c0c533c7d7eedbef85805e157f0ab75c864b (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 1c6464fc1b6e3cde61b64fc07308a3934966fe74
Merge: 80c1c0c53 b2e1db4f3
Author: Peter Amstutz <pamstutz at veritasgenetics.com>
Date: Thu Oct 3 18:01:46 2019 -0400
Merge branch '15684-package-deps' refs #15684
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz at veritasgenetics.com>
commit b2e1db4f3c44c6f41c37bfebf032526cf09bf9a6
Author: Peter Amstutz <pamstutz at veritasgenetics.com>
Date: Thu Oct 3 17:57:25 2019 -0400
15684: Fix arvados-api-server and arvados-workbench packaging
- Fix test_package_presence to use correct URL to download prebuilt dev debs
- Dev package version of api is now latest(api, arvados-server)
- Dev package version of workbench is now latest(workbench, arvados-server)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz at veritasgenetics.com>
diff --git a/build/run-library.sh b/build/run-library.sh
index ea839aa0d..95f2ff145 100755
--- a/build/run-library.sh
+++ b/build/run-library.sh
@@ -209,6 +209,26 @@ _build_rails_package_scripts() {
done
}
+rails_package_version() {
+ local pkgname="$1"; shift
+ if [[ -n "$ARVADOS_BUILDING_VERSION" ]]; then
+ echo "$ARVADOS_BUILDING_VERSION"
+ return
+ fi
+ local version="$(version_from_git)"
+ if [ $pkgname = "arvados-api-server" -o $pkgname = "arvados-workbench" ] ; then
+ local P="$PWD"
+ cd $WORKSPACE
+ local arvados_server_version
+ calculate_go_package_version arvados_server_version cmd/arvados-server
+ cd $P
+ if [ $arvados_server_version > $version ] ; then
+ version=$arvados_server_version
+ fi
+ fi
+ echo $version
+}
+
test_rails_package_presence() {
local pkgname="$1"; shift
local srcdir="$1"; shift
@@ -221,7 +241,7 @@ test_rails_package_presence() {
cd $srcdir
- local version="$(version_from_git)"
+ local version="$(rails_package_version $pkgname)"
cd $tmppwd
@@ -312,11 +332,11 @@ test_package_presence() {
repo_subdir=${pkgname:0:1}
fi
- repo_pkg_list=$(curl -s -o - http://apt.arvados.org/pool/${D}/main/${repo_subdir}/)
- echo ${repo_pkg_list} |grep -q ${full_pkgname}
+ repo_pkg_list=$(curl -s -o - http://apt.arvados.org/pool/${D}-dev/main/${repo_subdir}/${pkgname}/)
+ echo "${repo_pkg_list}" |grep -q ${full_pkgname}
if [ $? -eq 0 ] ; then
echo "Package $full_pkgname exists upstream, not rebuilding, downloading instead!"
- curl -s -o "$WORKSPACE/packages/$TARGET/${full_pkgname}" http://apt.arvados.org/pool/${D}/main/${repo_subdir}/${full_pkgname}
+ curl -s -o "$WORKSPACE/packages/$TARGET/${full_pkgname}" http://apt.arvados.org/pool/${D}-dev/main/${repo_subdir}/${pkgname}/${full_pkgname}
return 1
elif test -f "$WORKSPACE/packages/$TARGET/processed/${full_pkgname}" ; then
echo "Package $full_pkgname exists, not rebuilding!"
@@ -353,7 +373,7 @@ handle_rails_package() {
local srcdir="$1"; shift
cd "$srcdir"
local license_path="$1"; shift
- local version="$(version_from_git)"
+ local version="$(rails_package_version $pkgname)"
echo "$version" >package-build.version
local scripts_dir="$(mktemp --tmpdir -d "$pkgname-XXXXXXXX.scripts")" && \
(
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list