From 501e5dc8c44d4670141218ef5e6816e87623f99d Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Mon, 13 Jul 2009 11:11:15 +0000
Subject: [PATCH] abuild: upgrade dependencies when building recursive

---
 abuild.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/abuild.in b/abuild.in
index 9d430995e67e..6dc2fb49f72e 100755
--- a/abuild.in
+++ b/abuild.in
@@ -709,7 +709,7 @@ builddeps() {
 		&& return 0
 
 	uninstall_after=".makedepends-$pkgname $uninstall_after"
-	if [ -n "$install_deps" ]; then
+	if [ -n "$install_deps" ] && [ -z "$recursive" ]; then
 		$SUDO apk add --repo "$apkcache" \
 			--virtual .makedepends-$pkgname $deps \
 			&& return 0
@@ -724,7 +724,7 @@ builddeps() {
 		msg "Entering $dir"
 		cd "$dir" && $0 -k -r apkcache || return 1
 	done
-	$SUDO apk add --repo "$apkcache" \
+	$SUDO apk add --repo -u "$apkcache" \
 		--virtual .makedepends-$pkgname $deps
 }
 
-- 
GitLab