xbps-src: make it possible to override the subpackages list via ${subpackages}.

This overrides the automatic list generated by xbps-src and it's overridable
to change the processing order of subpackages.
This commit is contained in:
Juan RP 2014-07-23 15:44:36 +02:00
parent 9ac76b0d4c
commit c49e01fc15
3 changed files with 8 additions and 2 deletions

View file

@ -293,7 +293,9 @@ setup_pkg() {
fi
sourcepkg="${pkgname}"
subpackages="$(get_subpkgs)"
if [ -z "$subpackages" ]; then
subpackages="$(get_subpkgs)"
fi
if [ -h $XBPS_SRCPKGDIR/$pkg ]; then
# Source all subpkg environment setup snippets.