tazwok rev 451 4.3
tazwok: ensure repository ID is up-to-date after a cook command
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Tue Mar 15 05:47:21 2011 +0100 (2011-03-15) |
parents | 10a0f496be28 |
children | 954023be2d07 |
files | TODO tazwok |
line diff
1.1 --- a/TODO Tue Mar 15 05:33:36 2011 +0100 1.2 +++ b/TODO Tue Mar 15 05:47:21 2011 +0100 1.3 @@ -31,11 +31,11 @@ 1.4 [ ] Allow to download safe-wok using rsync 1.5 [ ] Take advantage of --rootconfig of new tazpkg (after tazpkg 4.3 release only) 1.6 [*] Generate the safe-wok, and optionally a tarbalized one 1.7 -[รน] Rework detection of broken shared libs dependencies 1.8 +[*] Rework detection of broken shared libs dependencies 1.9 [ ] Check that packages are availbale before cooking 1.10 [*] Check that repositories exists into tazpkg conf 1.11 [*] Check that env is up to date, or upgrade, or propose upgrade if outside of chroot. 1.12 [ ] Need to check priorities outside of chroot 1.13 [*] Generate ID of the repository. 1.14 -[ ] Ensure ID is up-dated after cook operations to avoid false-changes detection. 1.15 +[*] Ensure ID is up-dated after cook operations to avoid false-changes detection. 1.16 [ ] Ensure smooth tazwok update by automatically update cook environnement according new stuff
2.1 --- a/tazwok Tue Mar 15 05:33:36 2011 +0100 2.2 +++ b/tazwok Tue Mar 15 05:47:21 2011 +0100 2.3 @@ -3547,5 +3547,19 @@ 2.4 ;; 2.5 esac 2.6 2.7 +# If a cook command has been used, refresh ID of the repository to avoid 2.8 +# useless upgrade at next cook command. 2.9 +case $COMMAND in 2.10 + cook*) 2.11 + for repo in $PACKAGES_REPOSITORY $INCOMING_REPOSITORY \ 2.12 + $( [ "$undigest" -a ! "$ref_USE_ONLINE_PKG" ] && echo $ref_PACKAGES_REPOSITORY ); do 2.13 + [ -f $repo/ID ] || continue 2.14 + MIRROR_path=$(grep -l "^$repo$" $LOCALSTATE/mirror $LOCALSTATE/undigest/*/mirror) 2.15 + LOCALSTATE_path=${MIRROR_path%/mirror} 2.16 + cp -a $repo/ID $LOCALSTATE_path 2.17 + done 2.18 + ;; 2.19 +esac 2.20 + 2.21 report stop 2>/dev/null 2.22 exit 0