X-Original-To: alpine-devel@lists.alpinelinux.org Received: from sender153-mail.zoho.com (sender153-mail.zoho.com [74.201.84.153]) by lists.alpinelinux.org (Postfix) with ESMTP id C275B5C453C for ; Sat, 3 Dec 2016 16:52:50 +0000 (GMT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=from:to:cc:subject:date:message-id; b=jb9HjD7mitpM8KHglF3f0DSMV3kKgHRCjVs+Ge3ibFShhwlFh1oP+WEswc6jUnDGK0vxrLSjZ6cM eRItTKkLNQq3TczPHnRsgex98/V8deMLppIGSL1Jgvscm1Vl4AZF Received: from localhost (89-74-198-11.dynamic.chello.pl [89.74.198.11]) by mx.zohomail.com with SMTPS id 1480783951190753.6845592287332; Sat, 3 Dec 2016 08:52:31 -0800 (PST) From: Przemyslaw Pawelczyk To: timo.teras@iki.fi Cc: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] [PATCH] abuild: Make default_prepare() always end up in "$builddir". Date: Sat, 3 Dec 2016 17:52:25 +0100 Message-Id: <20161203165225.4341-1-przemoc@zoho.com> X-Mailer: git-send-email 2.8.3 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: 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 ---