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

Unified Diff: packagerChrome.py

Issue 29333368: Issue 3498 - Improve file mapping / skipping logic (Closed)
Patch Set: Created Jan. 12, 2016, 9:56 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« packager.py ('K') | « packager.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packagerChrome.py
diff --git a/packagerChrome.py b/packagerChrome.py
index 237cb2167ea5d84824d3602ddf20308a0018d828..79db0e83a301b6ae1a6ff281b5cae6dc8f281da0 100644
--- a/packagerChrome.py
+++ b/packagerChrome.py
@@ -326,12 +326,17 @@ def createBuild(baseDir, type='chrome', outFile=None, buildNum=None, releaseBuil
'metadata': metadata,
}
+ if metadata.has_option('general', 'skippedPackageFiles'):
+ skip = re.split(r'\s+', metadata.get('general', 'skippedPackageFiles'))
+ else:
+ skip = []
Wladimir Palant 2016/01/12 12:16:33 Please don't introduce a new option for that. s
kzar 2016/01/12 13:09:47 Ah, much better idea, Done.
+
files = Files(getPackageFiles(params), getIgnoredFiles(params),
process=lambda path, data: processFile(path, data, params))
+ files.read(baseDir, skip=skip)
Wladimir Palant 2016/01/12 12:16:33 Things become inconsistent if you move this up, ot
kzar 2016/01/12 13:09:47 Yes I agree and it no longer matters now that we a
if metadata.has_section('mapping'):
files.readMappedFiles(metadata.items('mapping'))
- files.read(baseDir)
if metadata.has_section('convert_js'):
convertJS(params, files)
« packager.py ('K') | « packager.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld