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

View file

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