From 326c989c7c0b8a73ea4997fd311f4a05349d55ad Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 27 Apr 2016 20:56:55 +0200 Subject: [PATCH] xbps-src/show: resolve virtual dependencies correctly. --- common/xbps-src/shutils/show.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/common/xbps-src/shutils/show.sh b/common/xbps-src/shutils/show.sh index 014bb5c376b..f1023ca8934 100644 --- a/common/xbps-src/shutils/show.sh +++ b/common/xbps-src/shutils/show.sh @@ -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