]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-build: fix the chacra_check_url for debian builds 359/head
authorAndrew Schoen <aschoen@redhat.com>
Wed, 20 Apr 2016 19:01:39 +0000 (14:01 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 20 Apr 2016 19:01:39 +0000 (14:01 -0500)
This corrects the name of librados2 so that we can do a proper check
against chacra before reuploading a binary.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
ceph-build/build/build_deb

index 17932c9c2fe34e47140a21ae57cfc2bd20828d0f..49acb189eab41485e9ae50319b705e34d3937752 100644 (file)
@@ -59,7 +59,8 @@ 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}"
-chacra_check_url="${chacra_endpoint}/librados2_${vers}-${bpvers}_${ARCH}.deb"
+DEB_ARCH=`dpkg-architecture | grep DEB_BUILD_ARCH\= | cut -d '=' -f 2`
+chacra_check_url="${chacra_endpoint}/librados2_${bpvers}_${DEB_ARCH}.deb"
 
 if [ "$THROWAWAY" = false ] ; then
     # this exists in scripts/build_utils.sh