xbps-src: show_pkg_build_depends: handle cross case.

This commit is contained in:
Juan RP 2020-04-15 13:29:44 +02:00
parent a73783d17d
commit ad3d1f862d
No known key found for this signature in database
GPG Key ID: AF19F6CB482F9368
1 changed files with 4 additions and 2 deletions

View File

@ -68,8 +68,10 @@ show_pkg_build_depends() {
# build time deps
for f in ${_deps}; do
# ignore dependency on itself
[[ $f == $sourcepkg ]] && continue
if [ -z "$CROSS_BUILD" ]; then
# ignore dependency on itself
[[ $f == $sourcepkg ]] && continue
fi
if [ ! -f $XBPS_SRCPKGDIR/$f/template ]; then
msg_error "$pkgver: dependency '$f' does not exist!\n"
fi