tazwok rev 249
Try to speed-up clean-wok a little by removing too number report steps (in this case).
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sat Feb 12 04:44:30 2011 +0100 (2011-02-12) |
parents | 5ff5f524bc05 |
children | aaa89d7aed65 |
files | tazwok |
line diff
1.1 --- a/tazwok Sat Feb 12 04:19:25 2011 +0100 1.2 +++ b/tazwok Sat Feb 12 04:44:30 2011 +0100 1.3 @@ -1799,7 +1799,7 @@ 1.4 ls -A $WOK/$PACKAGE | grep -q -v -e ^receipt$ -e ^description.txt$ \ 1.5 -e ^stuff$ || return 1.6 1.7 - report step "Cleaning $PACKAGE" 1.8 + [ "$COMMAND" = clean-wok ] || report step "Cleaning $PACKAGE" 1.9 # Check for clean_wok function. 1.10 if grep -q ^clean_wok $RECEIPT; then 1.11 clean_wok 1.12 @@ -1815,7 +1815,7 @@ 1.13 rm -rf $f 1.14 esac 1.15 done 1.16 - report end-step 1.17 + [ "$COMMAND" = clean-wok ] || report end-step 1.18 } 1.19 1.20 # Configure and make a package with the receipt. 1.21 @@ -2462,14 +2462,12 @@ 1.22 source_lib report 1.23 report start 1.24 report step "Cleaning wok" 1.25 - report open-bloc 1.26 for PACKAGE in `ls -1 $WOK` 1.27 do 1.28 set_common_path 1.29 source_receipt 1.30 clean 1.31 done 1.32 - report close-bloc 1.33 echo "`ls -1 $WOK | wc -l` packages cleaned." 1.34 ;; 1.35 gen-list)