~alpine/devel

abuild: Make default_prepare() always end up in "$builddir". v1 PROPOSED

Przemyslaw Pawelczyk <przemoc@zoho.com>
Przemyslaw Pawelczyk: 1
 abuild: Make default_prepare() always end up in "$builddir".

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/devel/patches/971/mbox | git am -3
Learn more about email & git

[alpine-devel] [PATCH] abuild: Make default_prepare() always end up in "$builddir". Export this patch

Przemyslaw Pawelczyk <przemoc@zoho.com>
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 e49956b76d04..f56ac033f6a9 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)
-- 
2.8.3




---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---