common/xbps-src/shutils/show.sh: fix show-build-deps for *-32bit deps
This commit is contained in:
parent
fcef1a3035
commit
15d42f788d
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user