]> git.ipfire.org Git - pakfire.git/commitdiff
find-requires: Throw away error messages from objdump.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 7 Jan 2012 00:53:27 +0000 (01:53 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 7 Jan 2012 00:53:27 +0000 (01:53 +0100)
tools/find-requires

index 8bb6fb984f117b76312f74664c03b797d9c2139e..fb5721ac32f63087cf57af2265c1269d7335ec2a 100755 (executable)
@@ -108,7 +108,7 @@ for file in ${binary_files}; do
        [ -r ${file} ] || continue
 
        lib64=$(if file_is_64bit ${file}; then echo "${mark64}"; fi)
-       objdump -p ${file} | awk 'BEGIN { START=0; LIBNAME=""; }
+       objdump -p ${file} 2>/dev/null | awk 'BEGIN { START=0; LIBNAME=""; }
                /^$/ { START=0; }
                /^Dynamic Section:$/ { START=1; }
                (START==1) && /NEEDED/ {