1 commit d16c15690f94589c2667a5096c21cec16daee7b7
2 Author: Michael Tremer <michael.tremer@ipfire.org>
3 Date: Sun Mar 11 19:53:10 2012 +0100
5 find-requires: Filter false positives for python abi.
7 diff --git a/tools/find-requires b/tools/find-requires
8 index 52b6651..044c59f 100755
9 --- a/tools/find-requires
10 +++ b/tools/find-requires
11 @@ -43,14 +43,16 @@ while read file; do
13 # Sort out all python files.
16 + */usr/lib/python*|*/usr/lib64/python*)
17 # This will only get the python directory.
18 file=$(basename ${file})
20 # Strip the python version from the string.
21 python_version="${file#python}"
23 - echo "python-abi = ${python_version}"
24 + if [ -n "${python_version}" ]; then
25 + echo "python-abi = ${python_version}"