From: Michael Tremer Date: Sun, 2 May 2010 22:16:20 +0000 (+0200) Subject: pakfire: Remove provided objects from required list. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12cb4467eff55bf6f1db43c7b94123e6386adc8b;p=ipfire-3.x.git pakfire: Remove provided objects from required list. --- diff --git a/tools/common-functions b/tools/common-functions index 312ac0b95..9c28f27c3 100644 --- a/tools/common-functions +++ b/tools/common-functions @@ -102,8 +102,14 @@ find_requires() { local file local files=$(find_elf_files ${BINARY_PATHS}) + local provides=$(find_provides) + + local needed for file in ${files}; do - output="${output} $(get_needed ${file})" + needed=$(get_needed ${file}) + if ! listmatch ${needed} ${provides}; then + output="${output} ${needed}" + fi done listsort ${output}