abuild: upgrade dependencies when building recursive

This commit is contained in:
Natanael Copa 2009-07-13 11:11:15 +00:00
parent e58a533440
commit 501e5dc8c4
1 changed files with 2 additions and 2 deletions

View File

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