From d16c15690f94589c2667a5096c21cec16daee7b7 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 11 Mar 2012 19:53:10 +0100 Subject: [PATCH] find-requires: Filter false positives for python abi. --- tools/find-requires | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.39.5