diff options
-rwxr-xr-x | abuild.in | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |