patch from seablade for fetching the svn revision

git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@12734 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-06-16 02:18:16 +00:00
parent c2443fbd83
commit 5227874ca0
1 changed files with 2 additions and 2 deletions

View File

@ -268,7 +268,7 @@ def fetch_svn_revision (path):
cmd = "LANG= "
cmd += "svn info "
cmd += path
cmd += " | awk '/^Revision:/ { print $2}'"
cmd += " 2>/dev/null | awk '/^Revision:/ { print $2}'"
return commands.getoutput (cmd)
def create_stored_revision (target = None, source = None, env = None):
@ -342,7 +342,7 @@ env.Append (BUILDERS = {'VersionBuild' : version_bld})
#
def versioned_builder(target,source,env):
w, r = os.popen2( "LANG= svn info | awk '/^Revision:/ { print $2}'")
w, r = os.popen2( "LANG= svn info 2>/dev/null | awk '/^Revision:/ { print $2}'")
last_revision = r.readline().strip()
w.close()