From a8962ace184c5f7c820c91b7c4702adbd456a8d5 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 14 Mar 2015 09:23:31 +0100 Subject: [PATCH] xbps-src/build.sh: only skip building/installing deps for target pkg with -N. --- common/xbps-src/libexec/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/xbps-src/libexec/build.sh b/common/xbps-src/libexec/build.sh index 60a3934ab07..2180e238266 100755 --- a/common/xbps-src/libexec/build.sh +++ b/common/xbps-src/libexec/build.sh @@ -28,8 +28,8 @@ check_pkg_arch $XBPS_CROSS_BUILD install_cross_pkg $XBPS_CROSS_BUILD # Install dependencies from binary packages -if [ -z "$XBPS_SKIP_DEPS" ]; then - install_pkg_deps $PKGNAME $TARGET_PKG $TARGET $XBPS_CROSS_BUILD || exit 1 +if [ "$PKGNAME" != "$TARGET_PKG" -o -z "$XBPS_SKIP_DEPS" ]; then + install_pkg_deps $PKGNAME $TARGET_PKG pkg $XBPS_CROSS_BUILD || exit 1 fi # Fetch distfiles after installing required dependencies,