summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-01-05 15:32:26 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-01-05 15:32:26 +0000
commitb27a6f47107a848372a9863134e933c6d5ab7598 (patch)
tree02152b10cd52a399f3af26aa453ab7c8617789e2
parent1430275df6431cb9e0e83a1015e1bc64c459ddf4 (diff)
downloadabuild-b27a6f47107a848372a9863134e933c6d5ab7598.tar.gz
abuild-b27a6f47107a848372a9863134e933c6d5ab7598.tar.bz2
abuild-b27a6f47107a848372a9863134e933c6d5ab7598.tar.xz
abuild-b27a6f47107a848372a9863134e933c6d5ab7598.zip
abuild: try break circular dependencies
-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