]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - pakfire/patches/pakfire-0.9.20-python-abi-find-requires.patch
openvswitch: Add service file for systemd.
[people/amarx/ipfire-3.x.git] / pakfire / patches / pakfire-0.9.20-python-abi-find-requires.patch
CommitLineData
47902c21
MT
1commit d16c15690f94589c2667a5096c21cec16daee7b7
2Author: Michael Tremer <michael.tremer@ipfire.org>
3Date: Sun Mar 11 19:53:10 2012 +0100
4
5 find-requires: Filter false positives for python abi.
6
7diff --git a/tools/find-requires b/tools/find-requires
8index 52b6651..044c59f 100755
9--- a/tools/find-requires
10+++ b/tools/find-requires
11@@ -43,14 +43,16 @@ while read file; do
12 */usr/lib*/python*/*)
13 # Sort out all python files.
14 ;;
15- */usr/lib*/python*)
16+ */usr/lib/python*|*/usr/lib64/python*)
17 # This will only get the python directory.
18 file=$(basename ${file})
19
20 # Strip the python version from the string.
21 python_version="${file#python}"
22
23- echo "python-abi = ${python_version}"
24+ if [ -n "${python_version}" ]; then
25+ echo "python-abi = ${python_version}"
26+ fi
27 continue
28 ;;
29 esac