summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xabuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/abuild b/abuild
index 01cbcb6..1cba15d 100755
--- a/abuild
+++ b/abuild
@@ -474,6 +474,11 @@ builddeps() {
# i = pkg:dir
local dir=${i#*:}
local pkg=${i%:*}
+
+ # break circular deps
+ [ $(realpath "$dir") = $(realpath "${APKBUILD%/*}") ] \
+ && continue
+
msg "Entering $dir"
cd "$dir" || return 1
$0 -i $pkg || return 1