]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
use the chacractl that's installed in the virtualenv
authorAndrew Schoen <aschoen@redhat.com>
Wed, 28 Oct 2015 20:00:18 +0000 (15:00 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 28 Oct 2015 20:00:18 +0000 (15:00 -0500)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
ceph-build-next/build/build_deb
ceph-build-next/build/build_rpm

index 021d369e09c8ec5a3ca89349cfded274dcb9d7f3..12f902933b7c47c2d3e05c54050c8289924eaebe 100644 (file)
@@ -33,7 +33,7 @@ vers=`cat ./dist/version`
 distro=`python -c "exec 'import platform; print platform.linux_distribution()[0].lower()'"`
 chacra_endpoint="ceph/${chacra_ref}/${distro}/{$dist}/${ARCH}"
 
-chacractl exists binaries/${chacra_endpoint}; exists=$? || true
+./venv/bin/chacractl exists binaries/${chacra_endpoint}; exists=$? || true
 
 # if the binary already exists in chacra, do not rebuild
 if [ $exists -e 0 ] && [ "$FORCE" = false ] ; then
@@ -173,7 +173,7 @@ echo "Start Time = $start_time"
 echo "  End Time = $(date)"
 
 # push binaries to chacra
-find release/$vers/ | grep 'changes\|deb\|dsc\|gz' | chacractl binary create ${chacra_endpoint}
+find release/$vers/ | grep 'changes\|deb\|dsc\|gz' | ./venv/bin/chacractl binary create ${chacra_endpoint}
 
 
 echo "End Date: $(date)"
index e6c55a681a47b3cde1bd7fcf8605c15cc37c70ea..25cae8cd3e51588ad4efd63f235e922da9737860 100644 (file)
@@ -58,7 +58,7 @@ vers=`cat ./dist/version`
 [ "$TEST" = true ] && chacra_ref="$vers" || chacra_ref="test"
 chacra_baseurl="ceph/${chacra_ref}/${DISTRO}/${RELEASE}"
 
-chacractl exists binaries/${chacra_baseurl}/${ARCH}; exists=$? || true
+./venv/bin/chacractl exists binaries/${chacra_baseurl}/${ARCH}; exists=$? || true
 
 # if the binary already exists in chacra, do not rebuild
 if [ $exists -e 0 ] && [ "$FORCE" = false ]; then
@@ -114,7 +114,7 @@ cd "$WORKSPACE"
 
 
 # push binaries to chacra
-find release/${vers}/rpm/*/SRPMS | grep rpm | chacractl binary create ${chacra_baseurl}/source
-find release/${vers}/rpm/*/RPMS/* | grep rpm | chacractl binary create ${chacra_baseurl}/${ARCH}
+find release/${vers}/rpm/*/SRPMS | grep rpm | ./venv/bin/chacractl binary create ${chacra_baseurl}/source
+find release/${vers}/rpm/*/RPMS/* | grep rpm | ./venv/bin/chacractl binary create ${chacra_baseurl}/${ARCH}
 
 echo "End Date: $(date)"