diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-01-03 22:25:33 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-01-03 22:29:36 -0500 |
commit | fcddad60721db6dceb4858fc752f109c954e54e2 (patch) | |
tree | d404dcdb4f105762e4c10c1b73231398ab6cc842 /src/fullpkg/fullpkg-find | |
parent | 048ae6172b791ab9f5ae7cce022ba9f6d39dac18 (diff) |
fullpkg-find: touch up dependency listing
Diffstat (limited to 'src/fullpkg/fullpkg-find')
-rwxr-xr-x | src/fullpkg/fullpkg-find | 11 |
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 |