wok rev 6122
tazbb: no lock for check-receipt
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Sep 05 13:15:37 2010 +0200 (2010-09-05) |
parents | 9e8cd8926035 |
children | 8538db1d46e9 |
files | tazbb/stuff/tazbb |
line diff
1.1 --- a/tazbb/stuff/tazbb Sun Sep 05 12:43:51 2010 +0200 1.2 +++ b/tazbb/stuff/tazbb Sun Sep 05 13:15:37 2010 +0200 1.3 @@ -29,7 +29,7 @@ 1.4 # Let tazbb finish is work and make sure needed files exist. 1.5 if [ -f $LOCK_FILE ]; then 1.6 case $1 in 1.7 - usage|list-*|*block) 1.8 + usage|list-*|*block|check-receipt) 1.9 continue ;; 1.10 *) 1.11 echo -e "\nTazbb is already running and locked...\n" 1.12 @@ -903,7 +903,6 @@ 1.13 cd - > /dev/null 1.14 } 1.15 1.16 -return_status=0 1.17 case "$1" in 1.18 list-pkgs) 1.19 # List last cooked packages. 1.20 @@ -1021,7 +1020,7 @@ 1.21 check_variables $2 && 1.22 check_wanted_version $2 && 1.23 check_build_depends $2 "" 1.24 - return_status=$? ;; 1.25 + return $? ;; 1.26 check-depends) 1.27 case "$2" in 1.28 wok) 1.29 @@ -1058,4 +1057,4 @@ 1.30 echo "" > $DB_DIR/running 1.31 rm -f $LOCK_FILE /tmp/files.list.tazbb$$ 1.32 1.33 -exit $return_status 1.34 +exit 0