]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
pakfire: Remove provided objects from required list.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 2 May 2010 22:16:20 +0000 (00:16 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 2 May 2010 22:16:20 +0000 (00:16 +0200)
tools/common-functions

index 312ac0b95587136834f40ae9038b6a1b92c5b61b..9c28f27c38440502f7306fc822a1ee153d2f23f1 100644 (file)
@@ -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}