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

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 more 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
« no previous file with comments | « tools/linux_dist_support/debian/source/format ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/utils.py
diff --git a/tools/utils.py b/tools/utils.py
index 1c460fcf24dba3c5601143242b165993c2b51732..cda1f94f0aadea56a5cfeb86de2f83588880a854 100644
--- a/tools/utils.py
+++ b/tools/utils.py
@@ -339,6 +339,16 @@ 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')
+ try:
+ fd = open(svn_revision_file)
ricow1 2014/02/06 13:25:21 I am a sucker for with :-) try: with open(svn_re
Søren Gjesse 2014/02/07 09:52:43 Done.
+ content = fd.read()
+ fd.close()
+ return content
+ except:
+ pass
+
# Only fail on the buildbot in case of a SVN client version mismatch.
user = GetUserName()
if user != 'chrome-bot':
« no previous file with comments | « 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