summaryrefslogtreecommitdiff
path: root/src/fullpkg/fullpkg-find
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-01-03 22:25:33 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-01-03 22:29:36 -0500
commitfcddad60721db6dceb4858fc752f109c954e54e2 (patch)
treed404dcdb4f105762e4c10c1b73231398ab6cc842 /src/fullpkg/fullpkg-find
parent048ae6172b791ab9f5ae7cce022ba9f6d39dac18 (diff)
fullpkg-find: touch up dependency listing
Diffstat (limited to 'src/fullpkg/fullpkg-find')
-rwxr-xr-xsrc/fullpkg/fullpkg-find11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/fullpkg/fullpkg-find b/src/fullpkg/fullpkg-find
index 2a5fc44..f1b9573 100755
--- a/src/fullpkg/fullpkg-find
+++ b/src/fullpkg/fullpkg-find
@@ -120,11 +120,12 @@ find_deps() {
## Check next levels
declare -i next_level=$LEVEL+1
- # All deps in separate line, only once, without version.
- deps=($(echo "${depends[@]} ${makedepends[@]}" | \
- sed "s/[=<>]\+[^ ]\+//g" | \
- tr ' ' "\n" | \
- sort -u))
+ # All deps
+ local deps=("${depends[@]}" "${makedepends[@]}" "${checkdepends[@]}")
+ # Strip version specifiers
+ deps=("${deps[@]%%[=<>]*}")
+ # Filter out duplicates
+ read -d $'\n' -a deps <<<"$(printf '%s\n' "${deps[@]}"|sort -u)"
local _dep
for _dep in "${deps[@]}"; do