cookutils rev 707
cookall.sh: skip broken packages
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Mar 04 10:58:57 2015 +0100 (2015-03-04) |
parents | 073f946f667b |
children | 372c6cceec71 |
files | cookall.sh |
line diff
1.1 --- a/cookall.sh Wed Mar 04 10:15:40 2015 +0100 1.2 +++ b/cookall.sh Wed Mar 04 10:58:57 2015 +0100 1.3 @@ -8,7 +8,9 @@ 1.4 while true; do 1.5 chmod +x $DONELIST 1.6 for i in /home/slitaz/wok/*/receipt ; do 1.7 - grep -q "^$(basename ${i%/receipt})$" $DONELIST && continue 1.8 + pkg=$(basename ${i%/receipt}) 1.9 + grep -q "^$pkg$" $DONELIST && continue 1.10 + grep -q "^$pkg$" /home/slitaz/cache/broken && continue 1.11 unset BUILD_DEPENDS WANTED 1.12 . $i 1.13 for j in $BUILD_DEPENDS $WANTED ; do 1.14 @@ -24,9 +26,10 @@ 1.15 done 1.16 [ -x $DONELIST ] || continue 1.17 # try to break build dep loops... 1.18 - for i in gettext python udev cups libQtClucene menu-cache ; do 1.19 - grep -q "^$i$" $DONELIST && continue 1.20 - . /home/slitaz/wok/$i/receipt 1.21 + for pkg in gettext python udev cups libQtClucene menu-cache ; do 1.22 + grep -q "^$pkg$" $DONELIST && continue 1.23 + grep -q "^$pkg$" /home/slitaz/cache/broken && continue 1.24 + . /home/slitaz/wok/$pkg/receipt 1.25 cooker pkg $PACKAGE 1.26 [ /home/slitaz/packages/$PACKAGE-$VERSION*.tazpkg -nt $DONELIST ] || continue 1.27 echo $PACKAGE >> $DONELIST