SVN: toys/tools/cleanbuild/cleanbuild
sparky
sparky at pld-linux.org
Wed Feb 2 01:03:31 CET 2011
Author: sparky
Date: Wed Feb 2 01:03:31 2011
New Revision: 12100
Modified:
toys/tools/cleanbuild/cleanbuild
Log:
- use teeboth wrapper
Modified: toys/tools/cleanbuild/cleanbuild
==============================================================================
--- toys/tools/cleanbuild/cleanbuild (original)
+++ toys/tools/cleanbuild/cleanbuild Wed Feb 2 01:03:31 2011
@@ -461,10 +461,8 @@
fi
./findunusedbr -c $CHDIR $HOME/rpm/packages/$build_pkg/$build_pkg.spec
title "building"
- { chroot $CHDIR su $USER -c "$CHHOME/rpm/packages/builder -nn -bb $build_pkg $builder_options" < /dev/null 2>&1; echo $? > ecode; } | tee $buildlog
-
- ECODE=$(< ecode)
- rm -f ecode
+ ./teeboth $buildlog chroot $CHDIR su $USER -c "$CHHOME/rpm/packages/builder -nn -bb $build_pkg $builder_options"
+ ECODE=$?
if grep -q "error: Failed build dependencies:" $buildlog; then
SEARCH=$(cat $buildlog | awk '/^Error:/ { p = 0 }; { if ( p ) { f="p"; if ( $1 ~ /^\// ) f="f"; printf "search -%c %s; ", f, $1; } }; /error: Failed build dependencies:/ { p = 1 }')
More information about the pld-cvs-commit
mailing list