cookutils rev 48
cook: fic debug date - cooker: add date to cooknotes
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat May 07 04:42:06 2011 +0200 (2011-05-07) |
parents | 7583ee5ca495 |
children | 7281d806c7ea |
files | cook cooker |
line diff
1.1 --- a/cook Sat May 07 04:38:51 2011 +0200 1.2 +++ b/cook Sat May 07 04:42:06 2011 +0200 1.3 @@ -229,7 +229,7 @@ 1.4 debug_info() { 1.5 echo -e "\nDebug information" 1.6 separator 1.7 - echo "Cook date: $(date '+%Y-%M-%d %H:%M')" 1.8 + echo "Cook date: $(date '+%Y-%m-%d %H:%M')" 1.9 for error in ERROR "No package" "cp: can't stat" "can't open" 1.10 do 1.11 fgrep "$error" $LOGS/$pkg.log
2.1 --- a/cooker Sat May 07 04:38:51 2011 +0200 2.2 +++ b/cooker Sat May 07 04:42:06 2011 +0200 2.3 @@ -249,7 +249,8 @@ 2.4 note|-n) 2.5 # Blocked a pkg and want other to know why ? Post a note! 2.6 note="$2" 2.7 - [ "$note" ] && echo "$note" >> $cooknotes ;; 2.8 + date=$(date "+%Y-%m-%d %H:%M") 2.9 + [ "$note" ] && echo "$date : $note" >> $cooknotes ;; 2.10 notes|-ns) 2.11 # View cooknotes. 2.12 echo -e "\nCooknotes"