# HG changeset patch # User Antoine Bodin # Date 1323476478 -3600 # Node ID c7c0554989406160c0bb40d495154d818c5a4e89 # Parent 713a5580cf9ad548c1e95d08e61f5ad7841f1547 Compat: execute compile_rules() from directory when possible to match cookutils behavior diff -r 713a5580cf9a -r c7c055498940 tazwok --- a/tazwok Fri Dec 09 22:43:04 2011 +0100 +++ b/tazwok Sat Dec 10 01:21:18 2011 +0100 @@ -630,7 +630,11 @@ if grep -q ^compile_rules $RECEIPT; then echo "executing compile_rules" >> $LOG report step "Executing compile_rules" - cd $WOK/$PACKAGE + if [ -d "$src" ]; then + cd "$src" + else + cd $WOK/$PACKAGE + fi rm -f /tmp/config.site ulimit -d unlimited ulimit -m unlimited