From: Alfredo Deza Date: Wed, 20 Apr 2016 14:54:45 +0000 (-0400) Subject: DEB check_url endpoint variables chacra interactions X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F357%2Fhead;p=ceph-build.git 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 --- 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)