xbps-src: accept subpkgname as target pkg for the install target.

Close #686
This commit is contained in:
Juan RP 2014-12-06 12:32:56 +01:00
parent 61a2b9f4b1
commit efc17d8c22

View file

@ -69,9 +69,11 @@ install_pkg() {
$XBPS_LIBEXECDIR/xbps-src-prepkg.sh $subpkg $cross || exit 1
done
if [ "$XBPS_TARGET_PKG" = "$sourcepkg" ]; then
[ "$target" = "install" -o "$target" = "install-destdir" ] && return 0
fi
for subpkg in ${subpackages} ${sourcepkg}; do
if [ "$XBPS_TARGET_PKG" = "${subpkg}" -a "$target" = "install" ]; then
return 0
fi
done
# If install went ok generate the binpkgs.
for subpkg in ${subpackages} ${sourcepkg}; do