]> git.decadent.org.uk Git - dak.git/commitdiff
Seems to work with 0.6 too
authorMark Hymers <mhy@debian.org>
Sun, 19 Sep 2010 14:42:14 +0000 (14:42 +0000)
committerMark Hymers <mhy@debian.org>
Sun, 19 Sep 2010 14:42:14 +0000 (14:42 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
daklib/dbconn.py

index 817afb26ef15aaa7ca71bc5247c80c0fbaaa701e..2ec1b60cdeaf7b5925ab73be15c1c4549afbb275 100755 (executable)
@@ -72,11 +72,11 @@ class DebVersion(sqltypes.Text):
         return "DEBVERSION"
 
 sa_major_version = sqlalchemy.__version__[0:3]
-if sa_major_version == "0.5":
+if sa_major_version in ["0.5", "0.6"]:
     from sqlalchemy.databases import postgres
     postgres.ischema_names['debversion'] = DebVersion
 else:
-    raise Exception("dak isn't ported to SQLA versions != 0.5 yet.  See daklib/dbconn.py")
+    raise Exception("dak only ported to SQLA versions 0.5 and 0.6.  See daklib/dbconn.py")
 
 ################################################################################