# HG changeset patch # User Christopher Rogers # Date 1304198247 0 # Node ID 0dafc6cafa1905a178b1a3b52e648739720fe087 # Parent 70c7cb6c0956a37c00894ba4359873d6fa9a4c1d tank-bot: Made sure if .hg folder existed in LOCAL_REPOSITORY/flavors. It now clones flavors based on SLITAZ_VERSION. diff -r 70c7cb6c0956 -r 0dafc6cafa19 chroot-scripts/tank-bot --- a/chroot-scripts/tank-bot Sat Apr 30 21:13:12 2011 +0000 +++ b/chroot-scripts/tank-bot Sat Apr 30 21:17:27 2011 +0000 @@ -10,7 +10,12 @@ . /etc/slitaz/tazwok.conf LOCAL_REPOSITORY="$SLITAZ_DIR/${undigest:-$SLITAZ_VERSION}" cd $LOCAL_REPOSITORY/flavors -hg pull -u +if [ ! -d .hg ]; then + [ "$SLITAZ_VERSION" == "cooking" ] && hg clone http://hg.slitaz.org/flavors . + [ "$SLITAZ_VERSION" == "stable" ] && hg clone http://hg.slitaz.org/flavors-stable . +else + hg pull -u +fi clean-chroot tazwok cook-commit --missing