From 098a02161f967dc44e8aff68b0045a3412a9a1bb Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Thu, 26 Feb 2009 09:03:03 +0000
Subject: [PATCH] abuild: do not add busybox as dep to busybox itself

---
 abuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/abuild b/abuild
index baad2676351c..7085af59afbc 100755
--- a/abuild
+++ b/abuild
@@ -285,7 +285,7 @@ size = $size
 EOF
 	local i deps
 	deps="$depends"
-	if [ -n "$install" ] && head -n 1 "$srcdir/$install" | grep '^#' >/dev/null && ! depends_has busybox ; then
+	if [ -n "$install" ] && head -n 1 "$srcdir/$install" | grep '^#' >/dev/null && ! depends_has busybox && [ "$pkgname" != "busybox" ]; then
 		msg "Adding busybox to depends since we have an install script"
 		deps="$deps busybox"
 	fi
-- 
GitLab