# HG changeset patch # User Christopher Rogers # Date 1345069313 0 # Node ID 628e6a3a73db0cf2e76f00de8b105b8d662f2c90 # Parent 6ffcfca5ad36859d323d3e7e678ef64e6bbc30d0 cook: Add --flavors option back in to pkgdb option. Also added add stand alone flavors option so you don't need to rebuild package list to rebuild the flavor files. diff -r 6ffcfca5ad36 -r 628e6a3a73db cook --- a/cook Wed Aug 08 10:53:57 2012 +0000 +++ b/cook Wed Aug 15 22:21:53 2012 +0000 @@ -1482,6 +1482,40 @@ # as well as flavors files for TazLiTo. We dont need logs since we do it # manually to ensure everything is fine before syncing the mirror. pkgdb "$2" + if [ "$3" == "--flavors" ]; then + cook flavors + fi + exit 0 ;; + flavors) + [ -d "$flavors" ] && echo -e "Missing flavors: $flavors\n" && exit 1 + [ -d "$live" ] && || mkdir -p $live + gettext "Creating flavors files in:"; echo " $live" + echo "Cook pkgdb: Creating all flavors" | log + separator + gettext -e "Recharging lists to use latest packages...\n" + tazpkg recharge >/dev/null 2>/dev/null + + if [ ! -f "$live/tazlito.conf" ]; then + echo "Creating configuration file: tazlito.conf" + cp /etc/tazlito/tazlito.conf $live + sed -i "s|WORK_DIR=.*|WORK_DIR="$SLITAZ"|g" $live/tazlito.conf + fi + + #[ -d "$flavors/.hg" ] && $flavors && hg pull -u + + cd $live + echo "Starting to generate flavors..." + rm -f flavors.list *.flavor + for i in $flavors/* + do + fl=$(basename $i) + echo "Packing flavor: $(basename $i)" + tazlito pack-flavor $fl >/dev/null || exit 1 + tazlito show-flavor $fl --brief --noheader 2> \ + /dev/null >> flavors.list + done + cp -f $live/*.flavor $live/flavors.list $PKGS + separator && gettext "Flavors size: "; du -sh $live | awk '{print $1}' exit 0 ;; clean-chroot) clean_chroot ;;