diff options
Diffstat (limited to 'abuild.in')
-rw-r--r-- | abuild.in | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -594,6 +594,12 @@ runpart() { local part=$1 [ -n "$DEBUG" ] && msg "$part" trap "die '$part failed'" EXIT + if [ -d "$builddir" ]; then + case "$part" in + prepare|build|package|check) + cd "$builddir";; + esac + fi $part trap - EXIT } |