]>
Commit | Line | Data |
---|---|---|
292b1677 JB |
1 | --- rpm-4.4.1/scripts/pythondeps.sh.orig 2004-12-07 01:57:55.000000000 +0100 |
2 | +++ rpm-4.4.1/scripts/pythondeps.sh 2005-02-27 17:35:52.860244432 +0100 | |
3 | @@ -1,4 +1,4 @@ | |
4 | -#!/bin/bash | |
5 | +#!/bin/sh | |
6 | ||
7 | [ $# -ge 1 ] || { | |
8 | cat > /dev/null | |
9 | @@ -9,12 +9,12 @@ | |
10 | case $1 in | |
11 | -P|--provides) | |
12 | shift | |
13 | - grep "/usr/bin/python\*\$" >& /dev/null && echo "python(abi) = ${PYVER}" | |
be56de8c | 14 | + grep "/usr/lib[^/]*/libpython2\..*\.so.*\$" >/dev/null && echo "python(abi) = ${PYVER}" |
292b1677 JB |
15 | exit 0 |
16 | ;; | |
17 | -R|--requires) | |
18 | shift | |
19 | - grep "/usr/lib[^/]*/python${PYVER}/" >& /dev/null && echo "python(abi) = ${PYVER}" | |
be56de8c | 20 | + grep "/usr/\(lib[^/]*\|share\)/python${PYVER}/" >/dev/null && echo "python(abi) = ${PYVER}" |
292b1677 JB |
21 | exit 0 |
22 | ;; | |
23 | esac |