From fcddad60721db6dceb4858fc752f109c954e54e2 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 3 Jan 2014 22:25:33 -0500 Subject: fullpkg-find: touch up dependency listing --- src/fullpkg/fullpkg-find | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/fullpkg') 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 -- cgit v1.2.3-54-g00ecf