]> git.ipfire.org Git - pakfire.git/commitdiff
find-provides: Make sure, all files containing ".so" are actually ELF.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 11 Mar 2012 22:16:37 +0000 (23:16 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 11 Mar 2012 22:16:37 +0000 (23:16 +0100)
tools/find-provides

index afb1e80e377980c39d0a8665e756d67ce062da4d..8a3e3cb3a83e0140e3e752f8de35bda36dfe6d72 100755 (executable)
@@ -18,7 +18,8 @@ while read file; do
                        # Do not show python shared objects in provides list.
                        ;;
                *.so*)
-                       binary_files="${binary_files} ${file}"
+                       file_is_elf ${file} >/dev/null 2>&1 && \
+                               binary_files="${binary_files} ${file}"
                        ;;
                *.pm)
                        # This file is a perl module. We check them later.