]> git.ipfire.org Git - pakfire.git/commitdiff
find-requires: Filter false positives for python abi.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 11 Mar 2012 18:53:10 +0000 (19:53 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 11 Mar 2012 18:53:10 +0000 (19:53 +0100)
tools/find-requires

index 52b66511aac3b19b28debff4dbe4572e85abac7e..044c59fef507dd13c390f1d790ae1376089923b1 100755 (executable)
@@ -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