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 <adeza@redhat.com>
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)