]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
DEB check_url endpoint variables chacra interactions 357/head
authorAlfredo Deza <adeza@redhat.com>
Wed, 20 Apr 2016 14:54:45 +0000 (10:54 -0400)
committerAlfredo Deza <adeza@redhat.com>
Wed, 20 Apr 2016 15:20:02 +0000 (11:20 -0400)
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>
ceph-build/build/build_deb

index 49a7f0a420dc47c7b70e84e244f81290b1f1f602..17932c9c2fe34e47140a21ae57cfc2bd20828d0f 100644 (file)
@@ -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)