xbps-src/show: resolve virtual dependencies correctly.

This commit is contained in:
Juan RP 2016-04-27 20:56:55 +02:00
parent d2bac19750
commit 326c989c7c
1 changed files with 6 additions and 2 deletions

View File

@ -63,8 +63,12 @@ show_pkg_build_deps() {
# build time deps
for f in ${host_build_depends} ${build_depends} ${run_depends}; do
# ignore virtual deps
if [ "${f%\?*}" = "virtual" ]; then
continue
local _rpkg="${f%\?*}"
local _vpkg="${f#*\?}"
# ignore virtual dependencies
if [ "${_rpkg}" != "${_vpkg}" ]; then
f="${_vpkg}"
fi
unset found
# check for subpkgs