tazwok rev 336

tank-bot: Dont try to install mercurial each time
author Christophe Lincoln <pankso@slitaz.org>
date Tue Feb 22 12:40:57 2011 +0100 (2011-02-22)
parents 30fbac111125
children 2544c1b41b47
files chroot-scripts/tank-bot
line diff
     1.1 --- a/chroot-scripts/tank-bot	Thu Feb 24 03:45:19 2011 +0100
     1.2 +++ b/chroot-scripts/tank-bot	Tue Feb 22 12:40:57 2011 +0100
     1.3 @@ -2,10 +2,12 @@
     1.4  # Automate common management tasks.
     1.5  
     1.6  # Update repositories
     1.7 -tazpkg get-install mercurial
     1.8 +if [ ! -d /var/lib/tazpkg/installed/mercurial ]; then
     1.9 +	tazpkg get-install mercurial
    1.10 +fi
    1.11  tazwok update-wok
    1.12 -source /etc/slitaz/slitaz.conf
    1.13 -source /etc/slitaz/tazwok.conf
    1.14 +. /etc/slitaz/slitaz.conf
    1.15 +. /etc/slitaz/tazwok.conf
    1.16  LOCAL_REPOSITORY="$SLITAZ_DIR/${undigest:-$SLITAZ_VERSION}"
    1.17  cd $LOCAL_REPOSITORY/flavors
    1.18  hg pull -u