Don't add "+0" when SDK version number's patch is 0.

Review URL: https://codereview.chromium.org//11411293

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15600 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
dgrove@google.com 2012-11-30 21:14:25 +00:00
parent e6640e35eb
commit 030e9e267f

View file

@ -53,7 +53,10 @@ def Main(argv):
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()