Commit 23b3d4a8 authored by Natanael Copa's avatar Natanael Copa

abuild: do not try build/install dependencies that are provided by self

like when main package depends on subpackages
parent 20d64942
......@@ -502,7 +502,14 @@ deptrace() {
builddeps() {
local deps alldeps pkg i dir ver missing
msg "Building dependencies..."
deps="$BUILD_BASE $depends $makedepends"
deps="$BUILD_BASE $makedepends"
# add depends unless it is a subpackage
for i in $depends; do
subpackages_has $i || deps="$deps $i"
done
# find which deps are missing
for i in $deps; do
if ! apk info -e $i; then
if [ -z "$install_deps" ] && [ -z "$recursive" ]; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment