cookutils rev 225
cook: we may have unknow dep and dep not in wok but mirrored
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu May 26 18:31:28 2011 +0200 (2011-05-26) |
parents | 57cfd34f1c3a |
children | a97516307ca9 |
files | cook |
line diff
1.1 --- a/cook Wed May 25 02:52:57 2011 +0200 1.2 +++ b/cook Thu May 26 18:31:28 2011 +0200 1.3 @@ -457,6 +457,8 @@ 1.4 if [ -f "$PKGS/$i-$vers.tazpkg" ]; then 1.5 echo $i-$vers.tazpkg >> $CACHE/installed.local 1.6 else 1.7 + # Priority to package version in wok (maybe mor up-to-date) 1.8 + # tha the mirrored one. 1.9 if [ "$vers" ]; then 1.10 if fgrep -q $i-$vers $DB/packages.list; then 1.11 echo $i >> $CACHE/installed.web 1.12 @@ -465,12 +467,19 @@ 1.13 gettext "Missing dep (wok/pkg):"; echo " $i $vers" 1.14 echo $i >> $CACHE/missing.dep 1.15 fi 1.16 + else 1.17 + # Package is not in wok but may be in repo. 1.18 + if fgrep -q $i-$vers $DB/packages.list; then 1.19 + echo $i >> $CACHE/installed.web 1.20 + else 1.21 + echo "ERROR: unknow dep $i" && exit 1 1.22 + fi 1.23 fi 1.24 fi 1.25 fi 1.26 done 1.27 done 1.28 - 1.29 + 1.30 # Get the list of installed packages 1.31 cd $INSTALLED && ls -1 > $CACHE/installed.list 1.32