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

like when main package depends on subpackages
This commit is contained in:
Natanael Copa 2009-02-17 07:39:06 +00:00
parent 20d6494236
commit 23b3d4a8dd
1 changed files with 8 additions and 1 deletions

9
abuild
View File

@ -502,7 +502,14 @@ deptrace() {
builddeps() { builddeps() {
local deps alldeps pkg i dir ver missing local deps alldeps pkg i dir ver missing
msg "Building dependencies..." 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 for i in $deps; do
if ! apk info -e $i; then if ! apk info -e $i; then
if [ -z "$install_deps" ] && [ -z "$recursive" ]; then if [ -z "$install_deps" ] && [ -z "$recursive" ]; then