Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
fixes bug 1146424 - Problem with verifying PosrgreSQL version in auto…
Browse files Browse the repository at this point in the history
…mation setup script
  • Loading branch information
KovalKt committed Mar 23, 2015
1 parent 0789d06 commit 86e4e95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion devup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import os
import sys
import subprocess
import re


def _proceed(msg="Ready to proceed?"):
Expand Down Expand Up @@ -131,7 +132,7 @@ def check_git():
def _get_psql_version():
try:
output, error = _process(['psql', '--version'])
return output.strip().split()[-1]
return re.search(r"[0-9.].*", output.strip()).group()
except OSError:
return None

Expand Down

0 comments on commit 86e4e95

Please sign in to comment.