xbps-src: fix -E to check for the target pkg being registered in repos.
rather than just checking if its binary package is available.
This commit is contained in:
parent
d9209f130a
commit
01afe81aac
|
@ -336,8 +336,10 @@ setup_pkg() {
|
||||||
else
|
else
|
||||||
arch="$XBPS_TARGET_MACHINE"
|
arch="$XBPS_TARGET_MACHINE"
|
||||||
fi
|
fi
|
||||||
if [ -n "$XBPS_BINPKG_EXISTS" -a -f "${XBPS_REPOSITORY}/${pkgver}.${arch}.xbps" ]; then
|
if [ -n "$XBPS_BINPKG_EXISTS" ]; then
|
||||||
exit_and_cleanup
|
if [ "$($XBPS_QUERY_XCMD -R -ppkgver $pkgver 2>/dev/null)" = "$pkgver" ]; then
|
||||||
|
exit_and_cleanup
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$XBPS_DEBUG_PKGS" -o "$repository" = "nonfree" ]; then
|
if [ -z "$XBPS_DEBUG_PKGS" -o "$repository" = "nonfree" ]; then
|
||||||
|
|
Loading…
Reference in New Issue