From 327fdf412b4d901406201bb992b50164102b05aa Mon Sep 17 00:00:00 2001 From: Lucas Carvalho <lucas@nexedi.com> Date: Wed, 24 Mar 2010 19:30:52 +0000 Subject: [PATCH] - before building tiolive appliance .spec it is required to have erp5-5.4.6 installed because it uses /opt/erp5/5.4.6/bin/python2.4 git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34075 20353a03-c40f-0410-a6d1-a30d3c3de9de --- buildout/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/buildout/Makefile b/buildout/Makefile index 9845806926..a6ca3406dd 100644 --- a/buildout/Makefile +++ b/buildout/Makefile @@ -43,4 +43,11 @@ rpm-appliance: sed -i "s,\$$(shell cat parts/checkout/VERSION.txt), `cat VERSION.txt`,g" rpmgen/Makefile sudo helpers/mandriva2010.0.sh # just make and wait... - cd rpmgen; make all + cd rpmgen; make + # now we have the erp5 software rpm and we need it installed to build tiolive application rpm + if test -d /home/`whoami`/rpmbuild/RPMS/x86_64; \ + then find /home/`whoami`/rpmbuild/RPMS/x86_64/ -name erp5-`cat VERSION.txt`* -print0 | xargs -0 sudo urpmi; \ + else find /home/`whoami`/rpmbuild/RPMS/i586/ -name erp5-`cat VERSION.txt`* -print0 | xargs -0 sudo urpmi; \ + fi + # building tiolive appliance + sudo rpmbuild -bb rpmgen/spec/tiolive-application-buildout-mandriva2010.spec -- 2.30.9