wok-next rev 4963
tazbb: check meta flavors for refresh
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 22 16:31:06 2010 +0100 (2010-02-22) |
parents | 02779417eb2b |
children | 7677c6ea8e85 |
files | tazbb/stuff/tazbb |
line diff
1.1 --- a/tazbb/stuff/tazbb Mon Feb 22 16:29:36 2010 +0100 1.2 +++ b/tazbb/stuff/tazbb Mon Feb 22 16:31:06 2010 +0100 1.3 @@ -223,6 +223,27 @@ 1.4 continue 2 1.5 done 1.6 done 1.7 + 1.8 + # Check for meta flavors 1.9 + for flavor in $(cd $HG_FLAVORS ; ls) 1.10 + do 1.11 + grep -q ^ROOTFS_SELECTION $HG_FLAVORS/$flavor/receipt || continue 1.12 + . $HG_FLAVORS/$flavor/receipt 1.13 + set -- $ROOTFS_SELECTION 1.14 + if [ $PACKAGES_REPOSITORY/$2.flavor -nt \ 1.15 + $PACKAGES_REPOSITORY/$flavor.flavor ]; then 1.16 + echo $flavor >> $DB_DIR/packlist 1.17 + [ "$1" = "report" ] && echo "Refresh : $flavor for $2" 1.18 + echo "Refresh meta flavor : $flavor" >> $DB_DIR/report 1.19 + continue 1.20 + fi 1.21 + if grep -q ^$2$ $DB_DIR/packlist ; then 1.22 + echo $flavor >> $DB_DIR/packlist 1.23 + [ "$1" = "report" ] && echo "Repack : $flavor for $2" 1.24 + echo "Repack meta flavor : $flavor" >> $DB_DIR/report 1.25 + continue 1.26 + fi 1.27 + done 1.28 } 1.29 1.30 # Here we pack all flavors found in the packlist.