xbps-src: return early in the bootstrap target when all deps are built.

This fixes the last issue for the 'bootstrap' target... this requires
xbps>=0.43.1 to work properly.
This commit is contained in:
Juan RP 2015-01-05 17:11:23 +01:00
parent 064e68acb4
commit 29b171a284
1 changed files with 9 additions and 5 deletions

View File

@ -113,11 +113,15 @@ install_pkg() {
rm -f ${_log}
fi
if [ "$XBPS_TARGET_PKG" = "$sourcepkg" -a "$XBPS_TARGET" != "bootstrap" ]; then
# Package built successfully. Exit directly due to nested install_pkg
# and install_pkg_deps functions.
remove_cross_pkg $cross
exit 0
if [ "$XBPS_TARGET_PKG" = "$sourcepkg" ]; then
if [ "$XBPS_TARGET" = "bootstrap" ]; then
return 0
else
# Package built successfully. Exit directly due to nested install_pkg
# and install_pkg_deps functions.
remove_cross_pkg $cross
exit 0
fi
fi
}