tazwok diff chroot-scripts/tank-bot @ 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 | 66c50670fa11 |
children | 0dafc6cafa19 |
line diff
1.1 --- a/chroot-scripts/tank-bot Fri Feb 18 23:52:22 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