xbps-src: show-build-deps: ignore virtual rdeps completely.
This commit is contained in:
parent
3107408b9e
commit
4130cd3e8f
|
@ -55,12 +55,15 @@ show_pkg_build_deps() {
|
|||
setup_pkg_depends
|
||||
# build time deps
|
||||
for f in ${host_build_depends} ${build_depends} ${run_depends}; do
|
||||
_dep="${f#virtual?}"
|
||||
# ignore virtual deps
|
||||
if [ "${f%\?*}" = "virtual" ]; then
|
||||
continue
|
||||
fi
|
||||
# check for subpkgs
|
||||
for x in ${subpackages}; do
|
||||
_pkgname="$($XBPS_UHELPER_CMD getpkgdepname ${_dep} 2>/dev/null)"
|
||||
_pkgname="$($XBPS_UHELPER_CMD getpkgdepname $f 2>/dev/null)"
|
||||
if [ -z "${_pkgname}" ]; then
|
||||
_pkgname="$($XBPS_UHELPER_CMD getpkgname ${_dep} 2>/dev/null)"
|
||||
_pkgname="$($XBPS_UHELPER_CMD getpkgname $f 2>/dev/null)"
|
||||
fi
|
||||
if [ "${_pkgname}" = "$x" ]; then
|
||||
found=1
|
||||
|
@ -70,7 +73,7 @@ show_pkg_build_deps() {
|
|||
if [ -n "$found" ]; then
|
||||
continue
|
||||
fi
|
||||
echo "${_dep}"
|
||||
echo "$f"
|
||||
done
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue