From 6b2fd4a891ba5eb7c32eeb37f5d18986d61d9090 Mon Sep 17 00:00:00 2001 From: Przemyslaw Pawelczyk Date: Sat, 3 Dec 2016 17:52:25 +0100 Subject: abuild: make default_prepare() always end up in "$builddir" So far default_prepare() ended up in "$builddir" only if there were any patches. It's better to be more consistent and make such change always. --- abuild.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/abuild.in b/abuild.in index e49956b..f56ac03 100644 --- a/abuild.in +++ b/abuild.in @@ -565,10 +565,10 @@ have_patches() { default_prepare() { local i + cd "$builddir" || { error "Is \$builddir set correctly?"; return 1; } if ! have_patches; then return 0 fi - cd "$builddir" || { error "Is \$builddir set correctly?"; return 1; } for i in $source; do case $i in *.patch) -- cgit v1.2.3-70-g09d2