summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrzemyslaw Pawelczyk <przemoc@zoho.com>2016-12-03 17:52:25 +0100
committerJakub Jirutka <jakub@jirutka.cz>2016-12-04 02:38:09 +0100
commit6b2fd4a891ba5eb7c32eeb37f5d18986d61d9090 (patch)
treef261dfcad47cd4fafaed1e9ee6fbfb97ed77f74f
parent454beb0c5cf8c807ed78c6ff548bc9ed285c0cef (diff)
downloadabuild-6b2fd4a891ba5eb7c32eeb37f5d18986d61d9090.tar.bz2
abuild-6b2fd4a891ba5eb7c32eeb37f5d18986d61d9090.tar.xz
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.
-rw-r--r--abuild.in2
1 files changed, 1 insertions, 1 deletions
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)