tazwok rev 424 4.3
Merge bugfix from default
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sun Mar 06 19:02:57 2011 +0100 (2011-03-06) |
parents | 6db209f174b3 bf449151a342 |
children | 556a89fc8607 |
files | tazwok |
line diff
1.1 --- a/tazwok Sun Mar 06 17:05:41 2011 +0100 1.2 +++ b/tazwok Sun Mar 06 19:02:57 2011 +0100 1.3 @@ -1503,8 +1503,13 @@ 1.4 update_wan_db() 1.5 { 1.6 local PACKAGE=$PACKAGE 1.7 - for RECEIPT in $(fgrep WANTED $WOK/*/receipt | \ 1.8 - fgrep $PACKAGE | cut -f1 -d ':'); do 1.9 + wanted_list=$(fgrep WANTED=\"$PACKAGE\" $WOK/*/receipt | cut -f1 -d ':') 1.10 + grep $'\t'$PACKAGE $wan_db | cut -f 1 | while read wan; do 1.11 + echo "$wanted_list" | fgrep -q /$wan/receipt && continue 1.12 + sed "/^$wan\t/d" -i $wan_db 1.13 + plan_regen_cookorder=yes 1.14 + done 1.15 + for RECEIPT in $wanted_list; do 1.16 WANTED= 1.17 source $RECEIPT 1.18 [ "$WANTED" ] || continue 1.19 @@ -1515,6 +1520,7 @@ 1.20 plan_regen_cookorder=yes 1.21 plan_sort_wandb=yes 1.22 done 1.23 + unset wanted_list 1.24 } 1.25 1.26 update_dep_db()