summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2004-12-06 15:47:27 +0000
committerjbj <devnull@localhost>2004-12-06 15:47:27 +0000
commit63377cb838839e519a81757698bbc380cca94b36 (patch)
treef5ed7abad7582a15a3e56b710e20188aba077917 /scripts
parentcf8bf4efd96da10b33a2b556dc78015cefbcfc9c (diff)
downloadrpm-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-xscripts/pythondeps.sh5
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