xbps-src: only print real source pkgs in show-build-deps.
This commit is contained in:
parent
041a70f9f8
commit
90771d92f5
1 changed files with 3 additions and 2 deletions
|
@ -52,7 +52,7 @@ show_avail() {
|
|||
}
|
||||
|
||||
show_pkg_build_deps() {
|
||||
local f x _pkgname _dep found result
|
||||
local f x _pkgname _srcpkg _dep found result
|
||||
|
||||
setup_pkg_depends
|
||||
|
||||
|
@ -86,7 +86,8 @@ show_pkg_build_deps() {
|
|||
if [ -z "${_pkgname}" ]; then
|
||||
_pkgname="$f"
|
||||
fi
|
||||
echo "${_pkgname}" >> $result
|
||||
_srcpkg=$(basename $(readlink -f ${XBPS_SRCPKGDIR}/${_pkgname}))
|
||||
echo "${_srcpkg}" >> $result
|
||||
done
|
||||
sort -u $result
|
||||
rm -f $result
|
||||
|
|
Loading…
Reference in a new issue