From: Michael Tremer Date: Sun, 11 Mar 2012 22:16:37 +0000 (+0100) Subject: find-provides: Make sure, all files containing ".so" are actually ELF. X-Git-Tag: 0.9.21~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f77b35e7578e0d8522858345add5a9fc94afe450;p=pakfire.git find-provides: Make sure, all files containing ".so" are actually ELF. --- diff --git a/tools/find-provides b/tools/find-provides index afb1e80e3..8a3e3cb3a 100755 --- a/tools/find-provides +++ b/tools/find-provides @@ -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.