[Ovirt-devel] [PATCH node] Default OVIRT_CACHE_DIR to be in root autobuild directory

Mike Burns mburns at redhat.com
Tue Mar 30 16:23:24 UTC 2010


Previously was not getting set to anything resulting in cache
being stored in ~/ovirt-cache.  For systems where multiple autobuilds
are running, this can lead to issues with builds for one version
getting rpms generated by another version.

Also, set ovirt-local repo to pull from the autobuild package root.

Signed-off-by: Mike Burns <mburns at redhat.com>
---
 autobuild.sh |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/autobuild.sh b/autobuild.sh
index f2b581d..92b3d32 100755
--- a/autobuild.sh
+++ b/autobuild.sh
@@ -25,6 +25,9 @@ set -v

 test -f Makefile && make -k distclean || :

+OVIRT_CACHE_DIR=${AUTOBUILD_SOURCE_ROOT}/../ovirt-cache
+OVIRT_LOCAL_REPO=file://${AUTOBUILD_PACKAGE_ROOT}/rpm/RPMS
+
 ./autogen.sh --prefix=$AUTOBUILD_INSTALL_ROOT
 make
 make install
@@ -44,7 +47,10 @@ fi

 #make iso
 cd recipe
-make ovirt-node-image.iso
+make \
+  OVIRT_LOCAL_REPO=$OVIRT_LOCAL_REPO \
+  OVIRT_CACHE_DIR=$OVIRT_CACHE_DIR \
+ovirt-node-image.iso

 #copy iso back to main directory for autotest.sh
 cp *iso ..
-- 
1.6.6.1




More information about the ovirt-devel mailing list