]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blob - pakfire/patches/pakfire-0.9.20-python-abi-find-requires.patch
mc: Update to 4.8.2.
[people/pmueller/ipfire-3.x.git] / pakfire / patches / pakfire-0.9.20-python-abi-find-requires.patch
1 commit d16c15690f94589c2667a5096c21cec16daee7b7
2 Author: Michael Tremer <michael.tremer@ipfire.org>
3 Date: Sun Mar 11 19:53:10 2012 +0100
4
5 find-requires: Filter false positives for python abi.
6
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
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