Fixed PostgreSQL version detection

This commit is contained in:
Federico Di Gregorio 2009-08-09 16:28:27 +02:00
parent 29d00f56f6
commit a2af059e6c
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2009-08-08 Federico Di Gregorio <fog@initd.org>
* setup.py: fixed version detection for PostgreSQL rc, as
suggested by Sok Ann Yap.
* ZPsycopgDA/db.py: applied serialization error retry from Brian
Sutherland.

View File

@ -208,7 +208,7 @@ class psycopg_build_ext(build_ext):
except:
pgversion = "7.4.0"
verre = re.compile(r"(\d+)\.(\d+)(?:(?:\.(\d+))|(devel|beta\d+))")
verre = re.compile(r"(\d+)\.(\d+)(?:(?:\.(\d+))|(devel|(beta|rc)\d+))")
m = verre.match(pgversion)
if m:
pgmajor, pgminor, pgpatch = m.group(1, 2, 3)