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>
# 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