From 01afe81aac61404d4353fba9a357a9b9d381168d Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 15 Mar 2015 09:54:02 +0100 Subject: [PATCH] xbps-src: fix -E to check for the target pkg being registered in repos. rather than just checking if its binary package is available. --- common/xbps-src/shutils/common.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/xbps-src/shutils/common.sh b/common/xbps-src/shutils/common.sh index 21c69c17b31..718409775c2 100644 --- a/common/xbps-src/shutils/common.sh +++ b/common/xbps-src/shutils/common.sh @@ -336,8 +336,10 @@ setup_pkg() { else arch="$XBPS_TARGET_MACHINE" fi - if [ -n "$XBPS_BINPKG_EXISTS" -a -f "${XBPS_REPOSITORY}/${pkgver}.${arch}.xbps" ]; then - exit_and_cleanup + if [ -n "$XBPS_BINPKG_EXISTS" ]; then + if [ "$($XBPS_QUERY_XCMD -R -ppkgver $pkgver 2>/dev/null)" = "$pkgver" ]; then + exit_and_cleanup + fi fi if [ -z "$XBPS_DEBUG_PKGS" -o "$repository" = "nonfree" ]; then