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

Unified Diff: packagerSafari.py

Issue 29333368: Issue 3498 - Improve file mapping / skipping logic (Closed)
Patch Set: Pass the skip parameter for both Gecko Files.read calls Created Jan. 12, 2016, 1:24 p.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
« packagerChrome.py ('K') | « packagerGecko.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packagerSafari.py
diff --git a/packagerSafari.py b/packagerSafari.py
index d999e943c1af764db6c453cb412bcdf861eb9ccc..78f02c16793e6ec4304f945f17e3991fa7ad8301 100644
--- a/packagerSafari.py
+++ b/packagerSafari.py
@@ -228,11 +228,12 @@ def createBuild(baseDir, type, outFile=None, buildNum=None, releaseBuild=False,
'metadata': metadata,
}
+ skip = metadata.options('mapping') if metadata.has_section('mapping') else []
files = Files(getPackageFiles(params), getIgnoredFiles(params),
process=lambda path, data: processFile(path, data, params))
if metadata.has_section('mapping'):
files.readMappedFiles(metadata.items('mapping'))
- files.read(baseDir)
+ files.read(baseDir, skip=skip)
if metadata.has_section('convert_js'):
convertJS(params, files)
« packagerChrome.py ('K') | « packagerGecko.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld