common/xbps-src/shutils/show.sh: fix show-build-deps for *-32bit deps

This commit is contained in:
Gonzalo Tornaría 2023-12-25 23:55:08 -03:00 committed by Andrew J. Hesford
parent fcef1a3035
commit 15d42f788d
1 changed files with 2 additions and 3 deletions

View File

@ -75,7 +75,7 @@ show_avail() {
show_eval_dep() {
local f x _pkgname _srcpkg found
local _dep="$1"
local _dep="${1%-32bit}"
local _host="$2"
if [ -z "$CROSS_BUILD" ] || [ -z "$_host" ]; then
# ignore dependency on itself
@ -92,8 +92,7 @@ show_eval_dep() {
[[ $_dep == $x ]] && found=1 && break
done
[[ $found ]] && return
_pkgname=${_dep/-32bit}
_srcpkg=$(readlink -f ${XBPS_SRCPKGDIR}/${_pkgname})
_srcpkg=$(readlink -f ${XBPS_SRCPKGDIR}/${_dep})
_srcpkg=${_srcpkg##*/}
echo $_srcpkg
}