Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Unified Diff: tools/utils.py

Issue 154073002: Add script for generating a source tarball and rules for bilding a Debian package (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed final review comments Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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':
« tools/linux_dist_support/debian/dart.links ('K') | « tools/linux_dist_support/debian/source/format ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698