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

Unified Diff: packagerEdge.py

Issue 29367145: Issue 4719 - Edge packager does not generate an info module (Closed)
Patch Set: Add a test. Reformat code. Created Dec. 22, 2016, 2:37 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
« no previous file with comments | « no previous file | tests/metadata.edge » ('j') | tests/metadata.edge » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packagerEdge.py
===================================================================
--- a/packagerEdge.py
+++ b/packagerEdge.py
@@ -178,6 +178,11 @@
'chromeDevenvPoller__.js'), relpath='devenvPoller__.js')
files['devenvVersion__'] = str(random.random())
+ if metadata.has_option('general', 'backgroundScripts'):
+ bg_scripts = metadata.get('general', 'backgroundScripts').split()
+ if 'lib/info.js' in bg_scripts and 'lib/info.js' not in files:
+ files['lib/info.js'] = packagerChrome.createInfoModule(params)
+
move_files_to_extension(files)
if metadata.has_section('appx_assets'):
« no previous file with comments | « no previous file | tests/metadata.edge » ('j') | tests/metadata.edge » ('J')

Powered by Google App Engine
This is Rietveld