Signed-off-by: Alfredo Deza <adeza@redhat.com>
BPTAG=`get_bptag $DIST`
-[ "$TEST" = true ] && chacra_ref="test" || chacra_ref="$BRANCH"
+# slap -rc to the ref if we are doing a release-candidate build
+[ "$RC" = true ] && chacra_ref="$BRANCH-rc" || chacra_ref="$BRANCH"
+[ "$TEST" = true ] && chacra_ref="test"
vers=`cat ./dist/version`
distro=`python -c "exec 'import platform; print platform.linux_distribution()[0].lower()'"`
chacra_endpoint="ceph/${chacra_ref}/${distro}/${DIST}/${ARCH}"
echo dist $dist
vers=`cat ./dist/version`
-[ "$TEST" = true ] && chacra_ref="test" || chacra_ref="$BRANCH"
+# slap -rc to the ref if we are doing a release-candidate build
+[ "$RC" = true ] && chacra_ref="$BRANCH-rc" || chacra_ref="$BRANCH"
+[ "$TEST" = true ] && chacra_ref="test"
chacra_baseurl="ceph/${chacra_ref}/${DISTRO}/${RELEASE}"
# this exists in scripts/build_utils.sh