tazpkg rev 76 2.0
Misc fix and add set-release to the manual
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri May 02 22:09:20 2008 +0200 (2008-05-02) |
parents | d11eb5165891 |
children | 456a37f76f3a |
files | doc/tazpkg.html tazpkg |
line diff
1.1 --- a/doc/tazpkg.html Mon Apr 28 16:02:20 2008 +0000 1.2 +++ b/doc/tazpkg.html Fri May 02 22:09:20 2008 +0200 1.3 @@ -263,6 +263,15 @@ 1.4 <pre> 1.5 # tazpkg upgrade 1.6 </pre> 1.7 +<h3><font color="#6c0023">set-release</font></h3> 1.8 +<p> 1.9 +La commande 'set-release' permet de changer la version de SliTaz et de mettre 1.10 +à jour tous les paquets. Attention cette commande peut être dangereuse dans 1.11 +la cas d'une mise à jour de la version stable version en cuisson (cooking) : 1.12 +</p> 1.13 +<pre> 1.14 + # tazpkg set-release cooking 1.15 +</pre> 1.16 <h3><font color="#6c0023">check</font></h3> 1.17 <p> 1.18 La commande 'check' permet de vérifier les dépendances sur les paquets
2.1 --- a/tazpkg Mon Apr 28 16:02:20 2008 +0000 2.2 +++ b/tazpkg Fri May 02 22:09:20 2008 +0200 2.3 @@ -859,20 +859,25 @@ 2.4 fi 2.5 done 2.6 ;; 2.7 - add-flavor) 2.8 + add-flavor) 2.9 # Install a set of packages from a flavor. 2.10 # 2.11 install_flavor $2 2.12 ;; 2.13 - install-flavor) 2.14 + install-flavor) 2.15 # Install a set of packages from a flavor and purge other ones. 2.16 # 2.17 install_flavor $2 --purge 2.18 ;; 2.19 - set-release) 2.20 + set-release) 2.21 # Change curent release and upgrade packages. 2.22 # 2.23 RELEASE=$2 2.24 + if [ -z "$RELEASE" ]; then 2.25 + echo -e "\nPlease specify the release you want on the command line." 2.26 + echo -e "Example: tazpkg set-release cooking\n" 2.27 + exit 0 2.28 + fi 2.29 rm /var/lib/tazpkg/mirror 2.30 echo "$RELEASE" > /etc/slitaz-release 2.31 tazpkg recharge && tazpkg upgrade