From efc17d8c22d30c38fb573f328f4aafc92cd0841c Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 6 Dec 2014 12:32:56 +0100 Subject: [PATCH] xbps-src: accept subpkgname as target pkg for the install target. Close #686 --- common/xbps-src/shutils/pkgtarget.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/common/xbps-src/shutils/pkgtarget.sh b/common/xbps-src/shutils/pkgtarget.sh index c8da8a64b7..790163ec12 100644 --- a/common/xbps-src/shutils/pkgtarget.sh +++ b/common/xbps-src/shutils/pkgtarget.sh @@ -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