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

Unified Diff: tools/publish_pkg.py

Issue 11411293: Don't add "+0" when SDK version number's patch is 0. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/publish_pkg.py
===================================================================
--- tools/publish_pkg.py (revision 15592)
+++ tools/publish_pkg.py (working copy)
@@ -53,7 +53,10 @@
print 'Error: Do not run this script from a bleeding_edge checkout.'
return -1
- version = '%d.%d.%d+%d' % (major, minor, build, patch)
+ if patch != 0:
+ version = '%d.%d.%d+%d' % (major, minor, build, patch)
+ else:
+ version = '%d.%d.%d' % (major, minor, build)
tmpDir = tempfile.mkdtemp()
pkgName = argv[1].split('/').pop()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698