From 9bf1ba5f8822682969cc1fb57248a81fcee57e96 Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@gmail.com>
Date: Sat, 30 Aug 2014 20:45:57 +0200
Subject: [PATCH] xbps-src: when all deps have been processed exit directly.

---
 common/xbps-src/shutils/pkgtarget.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/xbps-src/shutils/pkgtarget.sh b/common/xbps-src/shutils/pkgtarget.sh
index 9caaa1b265..79002fcddc 100644
--- a/common/xbps-src/shutils/pkgtarget.sh
+++ b/common/xbps-src/shutils/pkgtarget.sh
@@ -114,7 +114,7 @@ install_pkg() {
         # Package built successfully. Exit directly due to nested install_pkg
         # and install_pkg_deps functions.
         remove_cross_pkg $cross
-        return 0
+        exit 0
     fi
 }