server/serverctl.py
branch3.5
changeset 3301 1050fcfdb5cf
parent 3184 613064b49331
child 3303 f961392e7517
--- a/server/serverctl.py	Thu Sep 17 19:43:42 2009 +0200
+++ b/server/serverctl.py	Fri Sep 18 07:56:46 2009 +0200
@@ -312,7 +312,7 @@
         # postgres specific stuff
         if driver == 'postgres':
             # install plpythonu/plpgsql language if not installed by the cube
-            langs = ('plpgsql',) if sys.platform == 'win32' else ('plpythonu', 'plpgsql') 
+            langs = sys.platform == 'win32' and ('plpgsql',) or ('plpythonu', 'plpgsql') 
             for extlang in langs:
                 helper.create_language(cursor, extlang)
         cursor.close()