Index: tools/utils.py |
diff --git a/tools/utils.py b/tools/utils.py |
index 1c460fcf24dba3c5601143242b165993c2b51732..22c937b519249f8fd324302c87cf4ada30d0fbfd 100644 |
--- a/tools/utils.py |
+++ b/tools/utils.py |
@@ -339,6 +339,14 @@ def GetSVNRevision(): |
if revision: |
return revision |
+ # When building from tarball use tools/SVN_REVISION |
+ svn_revision_file = os.path.join(DART_DIR, 'tools', 'SVN_REVISION') |
kustermann
2014/02/06 15:28:04
You could make this a constant in utils.py add a c
|
+ try: |
+ with open(svn_revision_file) as fd |
kustermann
2014/02/06 15:28:04
There is a colon missing here. I don't think this
|
+ return fd.read() |
+ except: |
+ pass |
+ |
# Only fail on the buildbot in case of a SVN client version mismatch. |
user = GetUserName() |
if user != 'chrome-bot': |