jjb: lttng-modules: fix '//' in s3 url
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 2 Apr 2020 20:36:04 +0000 (16:36 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Thu, 9 Apr 2020 21:10:38 +0000 (17:10 -0400)
scripts/lttng-modules/param-build.sh

index 45fde202bfea33c9f9116316e3c7e5f12dbcb38a..f414ca982ebb09687a95e1b60144181a364773c6 100644 (file)
@@ -604,7 +604,13 @@ signature_v2 = False" > "$WORKSPACE/.s3cfg"
 
 url_hash="$(echo -n "$kgitrepo" | md5sum | awk '{ print $1 }')"
 obj_name="linux.tar.bz2"
-obj_url_prefix="$OBJ_STORE_URL/linux-build/$url_hash/$ktag/$arch/${cross_arch:-native}"
+
+if [ "x${cross_arch}" = "x" ]; then
+       obj_url_prefix="$OBJ_STORE_URL/linux-build/$url_hash/$ktag/$arch/native"
+else
+       obj_url_prefix="$OBJ_STORE_URL/linux-build/$url_hash/$ktag/${cross_arch}"
+fi
+
 obj_url="$obj_url_prefix/$obj_name"
 
 set +e
This page took 0.02341 seconds and 4 git commands to generate.