summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xabuild.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/abuild.in b/abuild.in
index 8551f99..6570abe 100755
--- a/abuild.in
+++ b/abuild.in
@@ -807,10 +807,10 @@ builddeps() {
local filtered_deps=
[ -n "$nodeps" ] && return 0
msg "Analyzing dependencies..."
- deps="$BUILD_BASE $makedepends"
- # add depends unless it is a subpackage
- for i in $depends; do
+ # add depends unless it is a subpackage or package itself
+ for i in $BUILD_BASE $depends $makedepends; do
+ [ "$pkgname" = "${i%%[<>=]*}" ] && continue
subpackages_has ${i%%[<>=]*} || deps="$deps $i"
done