# HG changeset patch # User Christophe Lincoln # Date 1304769240 -7200 # Node ID 147bded5c4604dac845c60a1af3620acb5352e95 # Parent bfadcb6fe3ec2fbe0f09571a2b564d55206c57c5 cook: small fix to cookit() and one more debug info diff -r bfadcb6fe3ec -r 147bded5c460 cook --- a/cook Sat May 07 13:33:21 2011 +0200 +++ b/cook Sat May 07 13:54:00 2011 +0200 @@ -242,7 +242,7 @@ echo -e "\nDebug information" separator echo "Cook date: $(date '+%Y-%m-%d %H:%M')" - for error in ERROR "No package" "cp: can't stat" "can't open" + for error in ERROR "No package" "cp: can't" "can't open" "can't cd" do fgrep "$error" $LOGS/$pkg.log done @@ -401,7 +401,7 @@ if grep -q ^compile_rules $receipt; then gettext -e "Executing: compile_rules\n" [ -d "$src" ] && cd $src - compile_rules || (echo "" && exit 1) + compile_rules || exit 1 # Stay compatible with _pkg [ -d "$src/_pkg" ] && mv $src/_pkg $install # QA: compile_rules success so valid. @@ -674,6 +674,7 @@ fi # Log and source receipt. + echo "Cook started for: $pkg" | log echo "cook:$pkg" > $command unset inst unset_receipt diff -r bfadcb6fe3ec -r 147bded5c460 cooker --- a/cooker Sat May 07 13:33:21 2011 +0200 +++ b/cooker Sat May 07 13:54:00 2011 +0200 @@ -198,7 +198,6 @@ if [ -s "$commits" ]; then for pkg in $(cat $commits) do - echo "Cook started for: $pkg" | log echo "cook:$pkg" > $command cook $pkg || broken sed -i /^${pkg}$/d $commits @@ -211,7 +210,6 @@ for pkg in $(cat $cooklist) do if [ ! -d "$wok/$pkg/install" ]; then - echo "Cook started for: $pkg" | log cook $pkg || broken sed -i /^${pkg}$/d $cooklist fi @@ -289,7 +287,6 @@ cook_list ;; pkg|-p) # Same as 'cook pkg' but with log for web interface. - echo "Cook started for: $pkg" | log cook $pkg || broken empty_command ;; cat|-c)