summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
Diffstat (limited to 'abuild.in')
-rwxr-xr-xabuild.in9
1 files changed, 7 insertions, 2 deletions
diff --git a/abuild.in b/abuild.in
index a94ff79..9824fbc 100755
--- a/abuild.in
+++ b/abuild.in
@@ -1732,10 +1732,15 @@ post_add() {
}
deps() {
- local deps i
+ local builddeps i
+ builddeps="$makedepends"
+ for i in $depends; do
+ [ "$pkgname" = "${i%%[<>=]*}" ] && continue
+ subpackages_has ${i%%[<>=]*} || builddeps="$builddeps $i"
+ done
$SUDO_APK add $apk_opt_wait --repository "$abuildrepo" \
--virtual .makedepends-$pkgname \
- $makedepends
+ $builddeps
}
undeps (){