From 88e42dd65da5bda44975d3d84960516ad4febc31 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Wed, 20 Apr 2016 10:54:45 -0400 Subject: [PATCH] DEB check_url endpoint variables chacra interactions This fixes the issue where the same url would be used to check DEB binary existence and to POST new binaries causing this: POST /binaries/ceph/jewel/ubuntu/trusty/x86_64/librados2_10.2.0-10.2.0-1trusty_x86_64.deb/ HTTP/1.1" 400 Which is the wrong URL for DEB binaries Signed-off-by: Alfredo Deza --- ceph-build/build/build_deb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ceph-build/build/build_deb b/ceph-build/build/build_deb index 49a7f0a4..17932c9c 100644 --- a/ceph-build/build/build_deb +++ b/ceph-build/build/build_deb @@ -58,11 +58,12 @@ gen_debian_version() { bpvers=`gen_debian_version $debian_version $DIST` # look for a specific package to tell if we can avoid the build -chacra_endpoint="ceph/${chacra_ref}/${distro}/${DIST}/${ARCH}/librados2_${vers}-${bpvers}_${ARCH}.deb" +chacra_endpoint="ceph/${chacra_ref}/${distro}/${DIST}/${ARCH}" +chacra_check_url="${chacra_endpoint}/librados2_${vers}-${bpvers}_${ARCH}.deb" if [ "$THROWAWAY" = false ] ; then # this exists in scripts/build_utils.sh - check_binary_existence $chacra_endpoint + check_binary_existence $chacra_check_url fi HOST=$(hostname --short) -- 2.47.3