cookutils rev 763

cook: fix cooktime for recursive cooks (like linux)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 10 12:40:48 2015 +0200 (2015-10-10)
parents e0a7dfab950c
children 91cb129f0b7b
files cook
line diff
     1.1 --- a/cook	Sun Sep 27 23:38:30 2015 +0200
     1.2 +++ b/cook	Sat Oct 10 12:40:48 2015 +0200
     1.3 @@ -1678,7 +1678,7 @@
     1.4  		pkg="$1"
     1.5  		[ -z "$pkg" ] && usage
     1.6  		lastcooktime=$(sed '/^Cook time/!d;s|.*: *\([0-9]*\)s.*|\1|' \
     1.7 -				$LOGS/$pkg.log 2> /dev/null)
     1.8 +				$LOGS/$pkg.log 2> /dev/null | sed '$!d')
     1.9  		receipt="$WOK/$pkg/receipt"
    1.10  		check_pkg_in_wok
    1.11  		newline