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

Unified Diff: tools/print_version.py

Issue 22393002: First CL for removing our dependency on the checked-in binary for building (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 | « runtime/dart-runtime.gyp ('k') | tools/utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/print_version.py
diff --git a/tools/print_version.py b/tools/print_version.py
index 65e700d3c84cfabc8fdb56989420b029f156eeee..13cbf750793044c252a0aa004e7feae38611f8f7 100755
--- a/tools/print_version.py
+++ b/tools/print_version.py
@@ -13,8 +13,12 @@
import sys
import utils
-def Main(argv):
- print(utils.GetVersion())
+def Main():
+ version = utils.GetVersion()
+ if not version:
+ print 'Error: Couldn\'t determine version string.'
+ return 1
+ print version
if __name__ == '__main__':
- sys.exit(Main(sys.argv))
+ sys.exit(Main())
« no previous file with comments | « runtime/dart-runtime.gyp ('k') | tools/utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698