tazwok rev 170
Improve gen-list function - autoextract datas from packages when needed.
author | Antoine Bodin <gokhlayeh@mailoo.org> |
---|---|
date | Tue Aug 03 23:11:36 2010 +0200 (2010-08-03) |
parents | 817d7df8486c |
children | 48e583555e39 |
files | tazwok |
line diff
1.1 --- a/tazwok Sat Jul 10 00:21:30 2010 +0200 1.2 +++ b/tazwok Tue Aug 03 23:11:36 2010 +0200 1.3 @@ -646,6 +646,18 @@ 1.4 # Date : $DATE 1.5 # 1.6 _EOT_ 1.7 + 1.8 + # Extract informations from package if needed & possible. 1.9 + for dir in $WOK/*; do 1.10 + pkg=$(cd $PACKAGES_REPOSITORY && echo ${dir##*/}* | sed -e 's/ .*//' -e 's/.tazpkg//' -e "s~${dir%/*}/~~") 1.11 + if [ ! -f $dir/taz/$pkg/receipt ] && [ -f $PACKAGES_REPOSITORY/$pkg.tazpkg ]; then 1.12 + mkdir -p $dir/taz/$pkg 1.13 + (cd $dir/taz/$pkg 1.14 + cpio -i --quiet 'receipt' < $PACKAGES_REPOSITORY/$pkg.tazpkg 1.15 + cpio -i --quiet 'files.list' < $PACKAGES_REPOSITORY/$pkg.tazpkg) 1.16 + fi 1.17 + done 1.18 + 1.19 for pkg in $WOK/* 1.20 do 1.21 [ ! -f $pkg/receipt ] && continue 1.22 @@ -1235,7 +1247,10 @@ 1.23 fakewok="" 1.24 if [ "$2" == "--text" ]; then 1.25 textlist="yes" 1.26 + 1.27 + # Fakewok can be deleted, actually we just warning users about that. 1.28 if [ "$3" == "--fakewok" ]; then 1.29 + echo "WARNING: fakewok is deprecated - tazwok extract datas from packages automatically when necessary." 1.30 WOK=/tmp/fakewok-$$ 1.31 fakewok="$WOK" 1.32 mkdir -p $WOK