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.
This commit is contained in:
Przemyslaw Pawelczyk 2016-12-03 17:52:25 +01:00 committed by Jakub Jirutka
parent 454beb0c5c
commit 6b2fd4a891
1 changed files with 1 additions and 1 deletions

View File

@ -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)