Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=xfcetesting.git;a=commitdiff;h=5ef6085c9247933a480af02edb71687b00924fd2
commit 5ef6085c9247933a480af02edb71687b00924fd2 Author: Michel Hermier <[email protected]> Date: Tue Apr 19 23:18:12 2011 +0200 srcmissing * Introduce reset_env function to try to reduce and rationalise environment cleaning. diff --git a/t/srcmissing b/t/srcmissing index 7277917..66ca9d5 100755 --- a/t/srcmissing +++ b/t/srcmissing @@ -18,22 +18,25 @@ if [ "$1" == "--download" ]; then fi startdir=.. +reset_env () { + unset archs install nobuild options pkgname pkgver pkgextraver source sha1sums + for k in `set|egrep '^(_F_|USE_)'|sed 's/\(=.*\| ()\)//'`; do unset $k; done + + export Fpkgversep='-' startdir=`pwd` +} + cd $startdir for i in `find source -maxdepth 5 -name FrugalBuild` do cd `dirname $i` || continue - unset pkgver pkgextraver nobuild options archs - Fpkgversep='-' - export startdir=`pwd` + reset_env . ./FrugalBuild || echo "errors parsing the FrugalBuild" if [ ! -z "$pkgname" -a ! "$nobuild" -a ! "`check_option NOBUILD`" -a ! "`check_option NOMIRROR`" ]; then - for j in ${archs[@]} + for j in "${archs[@]}" do [[ "$j" =~ '^!' ]] && continue + reset_env export CARCH=$j - unset pkgver pkgextraver source - for k in `set|egrep '^(_F_|USE_)'|sed 's/\(=.*\| ()\)//'`; do unset $k; done - export startdir=`pwd` . ./FrugalBuild || echo "errors parsing the FrugalBuild for $j" for k in "${source[@]}" do _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
