aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorperky <perky@FreeBSD.org>2003-08-02 06:04:57 +0800
committerperky <perky@FreeBSD.org>2003-08-02 06:04:57 +0800
commit43ad2b2be94664a694197ac789220cf5a1416d63 (patch)
treeb0b27a98e61a1b42796c104b744ed8aa729a0870 /textproc
parent2cdb3a379583e3b3056dbe0666d0518cc8d4b867 (diff)
downloadfreebsd-ports-gnome-43ad2b2be94664a694197ac789220cf5a1416d63.tar.gz
freebsd-ports-gnome-43ad2b2be94664a694197ac789220cf5a1416d63.tar.zst
freebsd-ports-gnome-43ad2b2be94664a694197ac789220cf5a1416d63.zip
Fix python version detection routines to cope with python 2.3's
boolean representation.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/py-asv/pkg-req2
-rw-r--r--textproc/py-martel/pkg-req2
-rw-r--r--textproc/py-xml/pkg-req2
3 files changed, 3 insertions, 3 deletions
diff --git a/textproc/py-asv/pkg-req b/textproc/py-asv/pkg-req
index bf09a351750d..e4fcd712858b 100644
--- a/textproc/py-asv/pkg-req
+++ b/textproc/py-asv/pkg-req
@@ -4,7 +4,7 @@ PATH=$PATH:/usr/local/bin
if [ "x$1" = "xINSTALL" -o "x$2" = "xINSTALL" ]; then
PYTHON_GT=`python -c 'import string, sys; \
- print string.split(sys.version)[0] >= "2.0"'`
+ print string.split(sys.version)[0] >= "2.0" and 1'`
if [ "x${PYTHON_GT}" = "x1" ]; then
exit 0
else
diff --git a/textproc/py-martel/pkg-req b/textproc/py-martel/pkg-req
index d57b71411158..5fc28f0b230e 100644
--- a/textproc/py-martel/pkg-req
+++ b/textproc/py-martel/pkg-req
@@ -4,7 +4,7 @@ PATH=$PATH:/usr/local/bin
if [ "x$1" = "xINSTALL" -o "x$2" = "xINSTALL" ]; then
PYTHON_GT=`python -c 'import string, sys; \
- print string.split(sys.version)[0] >= "2.0"'`
+ print string.split(sys.version)[0] >= "2.0" and 1'`
if [ "x${PYTHON_GT}" = "x1" ]; then
exit 0
else
diff --git a/textproc/py-xml/pkg-req b/textproc/py-xml/pkg-req
index af2d70f92c9e..ad2636a52f3a 100644
--- a/textproc/py-xml/pkg-req
+++ b/textproc/py-xml/pkg-req
@@ -4,7 +4,7 @@ PATH=$PATH:/usr/local/bin
if [ "x$1" = "xINSTALL" -o "x$2" = "xINSTALL" ]; then
PYTHON_GT=`python -c 'import string, sys; \
- print string.split(sys.version)[0] >= "2.0"'`
+ print string.split(sys.version)[0] >= "2.0" and 1'`
if [ "x${PYTHON_GT}" = "x1" ]; then
exit 0
else