common/xbps-src/shutils/show.sh: fix show-build-deps for *-32bit deps
This commit is contained in:
parent
fcef1a3035
commit
15d42f788d
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue