Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 6047895316856832: Rewrite version number in the correct file during release automation (Closed)

Created:
Jan. 15, 2014, 3:04 p.m. by Sebastian Noack
Modified:
Jan. 15, 2014, 4 p.m.
Visibility:
Public.

Description

With http://codereview.adblockplus.org/4702358030254080/ the version number for Chrome and Safari will will be inherited from metadata.common. So we have to make sure that we rewrite the version in the correct file.

Patch Set 1 #

Total comments: 2

Patch Set 2 : Adressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -8 lines) Patch
M releaseAutomation.py View 1 1 chunk +11 lines, -8 lines 0 comments Download

Messages

Total messages: 2
Sebastian Noack
Jan. 15, 2014, 3:08 p.m. (2014-01-15 15:08:30 UTC) #1
Wladimir Palant
Jan. 15, 2014, 3:41 p.m. (2014-01-15 15:41:20 UTC) #2
LGTM with the nits fixed.

http://codereview.adblockplus.org/6047895316856832/diff/5629499534213120/rele...
File releaseAutomation.py (right):

http://codereview.adblockplus.org/6047895316856832/diff/5629499534213120/rele...
releaseAutomation.py:29: with open(packager.readMetadata(baseDir,
type).option_source("general", "version"), 'r+b') as file:
Style nit: Please keep the line length below 80 characters if feasible. Here it
would make perfect sense to assign readMetadata result to a variable first, the
readability will improve.

http://codereview.adblockplus.org/6047895316856832/diff/5629499534213120/rele...
releaseAutomation.py:31: rawMetadata = re.sub(r'^(\s*version\s*=\s*).*',
r'\g<1>%s' % version, rawMetadata, flags=re.I | re.M)
Style nit: Please split function parameters to two lines here.

Powered by Google App Engine
This is Rietveld