13
0

fix i18n-caused error in determining svn revision (shoudl fix #5256)

git-svn-id: svn://localhost/ardour2/branches/3.0@13798 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2013-01-07 19:14:46 +00:00
parent 33d071468f
commit a52deb13e7

View File

@ -58,7 +58,8 @@ else:
# Version stuff
def fetch_svn_revision (path):
cmd = "LANG= svn info " + path + " | awk '/^Revision:/ { print $2}'"
# the fifth line has the revision number. we can't grep because of i18n issues changing the string
cmd = "svn info " + path + " | sed -n '5s/^[^:]*:[ \t][ \t]*//p'"
return subprocess.Popen(cmd, shell=True, stderr=subprocess.STDOUT, stdout=subprocess.PIPE).communicate()[0].splitlines()
def fetch_gcc_version (CC):