From: Michael Tremer Date: Sun, 11 Mar 2012 18:53:10 +0000 (+0100) Subject: find-requires: Filter false positives for python abi. X-Git-Tag: 0.9.21~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d16c15690f94589c2667a5096c21cec16daee7b7;p=pakfire.git find-requires: Filter false positives for python abi. --- diff --git a/tools/find-requires b/tools/find-requires index 52b66511a..044c59fef 100755 --- a/tools/find-requires +++ b/tools/find-requires @@ -43,14 +43,16 @@ while read file; do */usr/lib*/python*/*) # Sort out all python files. ;; - */usr/lib*/python*) + */usr/lib/python*|*/usr/lib64/python*) # This will only get the python directory. file=$(basename ${file}) # Strip the python version from the string. python_version="${file#python}" - echo "python-abi = ${python_version}" + if [ -n "${python_version}" ]; then + echo "python-abi = ${python_version}" + fi continue ;; esac