# HG changeset patch # User Antoine Bodin # Date 1280869896 -7200 # Node ID 3e13ed6611255d04d6f09c69579f311c7a3683fe # Parent 817d7df8486cec0d75badee4b1e3d4c9a19fecc4 Improve gen-list function - autoextract datas from packages when needed. diff -r 817d7df8486c -r 3e13ed661125 tazwok --- a/tazwok Sat Jul 10 00:21:30 2010 +0200 +++ b/tazwok Tue Aug 03 23:11:36 2010 +0200 @@ -646,6 +646,18 @@ # Date : $DATE # _EOT_ + + # Extract informations from package if needed & possible. + for dir in $WOK/*; do + pkg=$(cd $PACKAGES_REPOSITORY && echo ${dir##*/}* | sed -e 's/ .*//' -e 's/.tazpkg//' -e "s~${dir%/*}/~~") + if [ ! -f $dir/taz/$pkg/receipt ] && [ -f $PACKAGES_REPOSITORY/$pkg.tazpkg ]; then + mkdir -p $dir/taz/$pkg + (cd $dir/taz/$pkg + cpio -i --quiet 'receipt' < $PACKAGES_REPOSITORY/$pkg.tazpkg + cpio -i --quiet 'files.list' < $PACKAGES_REPOSITORY/$pkg.tazpkg) + fi + done + for pkg in $WOK/* do [ ! -f $pkg/receipt ] && continue @@ -1235,7 +1247,10 @@ fakewok="" if [ "$2" == "--text" ]; then textlist="yes" + + # Fakewok can be deleted, actually we just warning users about that. if [ "$3" == "--fakewok" ]; then + echo "WARNING: fakewok is deprecated - tazwok extract datas from packages automatically when necessary." WOK=/tmp/fakewok-$$ fakewok="$WOK" mkdir -p $WOK