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:
parent
454beb0c5c
commit
6b2fd4a891
@ -565,10 +565,10 @@ have_patches() {
|
|||||||
|
|
||||||
default_prepare() {
|
default_prepare() {
|
||||||
local i
|
local i
|
||||||
|
cd "$builddir" || { error "Is \$builddir set correctly?"; return 1; }
|
||||||
if ! have_patches; then
|
if ! have_patches; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
cd "$builddir" || { error "Is \$builddir set correctly?"; return 1; }
|
|
||||||
for i in $source; do
|
for i in $source; do
|
||||||
case $i in
|
case $i in
|
||||||
*.patch)
|
*.patch)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user