From 2b12324a990fb7c1b293a428370469fe7e759a72 Mon Sep 17 00:00:00 2001
From: Hye-Shik Chang <perky@FreeBSD.org>
Date: Fri, 1 Aug 2003 22:04:57 +0000
Subject: Fix python version detection routines to cope with python 2.3's
 boolean representation.

---
 databases/zodb/pkg-req  | 2 +-
 databases/zodb3/pkg-req | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

(limited to 'databases')

diff --git a/databases/zodb/pkg-req b/databases/zodb/pkg-req
index ee4d9957297d..d5d99df207bb 100644
--- a/databases/zodb/pkg-req
+++ b/databases/zodb/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.1"'`
+                        print string.split(sys.version)[0] >= "2.1" and 1'`
   if [ "x${PYTHON_GT}" = "x1" ]; then
     exit 0
   else
diff --git a/databases/zodb3/pkg-req b/databases/zodb3/pkg-req
index ee4d9957297d..d5d99df207bb 100644
--- a/databases/zodb3/pkg-req
+++ b/databases/zodb3/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.1"'`
+                        print string.split(sys.version)[0] >= "2.1" and 1'`
   if [ "x${PYTHON_GT}" = "x1" ]; then
     exit 0
   else
-- 
cgit v1.2.3