diff options
author | jbj <devnull@localhost> | 2004-12-06 15:47:27 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2004-12-06 15:47:27 +0000 |
commit | 63377cb838839e519a81757698bbc380cca94b36 (patch) | |
tree | f5ed7abad7582a15a3e56b710e20188aba077917 /scripts | |
parent | cf8bf4efd96da10b33a2b556dc78015cefbcfc9c (diff) | |
download | rpm-63377cb838839e519a81757698bbc380cca94b36.tar.gz rpm-63377cb838839e519a81757698bbc380cca94b36.tar.bz2 rpm-63377cb838839e519a81757698bbc380cca94b36.zip |
- automagically detect and emit "python(abi) = 2.4" dependencies.
- popt 1.10.1 to preserve newer.
CVS patchset: 7631
CVS date: 2004/12/06 15:47:27
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/pythondeps.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/pythondeps.sh b/scripts/pythondeps.sh index bd6535d4f..61c89f38c 100755 --- a/scripts/pythondeps.sh +++ b/scripts/pythondeps.sh @@ -9,13 +9,12 @@ PYVER=`python -c "import sys; v=sys.version_info[:2]; print '%d.%d'%v"` case $1 in -P|--provides) shift - grep /usr/bin/python 2> /dev/null && echo "python(abi) = ${PYVER}" + grep "/usr/bin/python\*\$" 2> /dev/null && echo "python(abi) = ${PYVER}" exit 0 ;; -R|--requires) shift - cat > /dev/null - echo "python(abi) = ${PYVER}" + grep "/usr/lib[^/]*/python${PYVER}/" 2> /dev/null && echo "python(abi) = ${PYVER}" exit 0 ;; esac |