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

Unified Diff: packager.py

Issue 29696596: Issue 6383 - introduce switchable app_id (Closed) Base URL: https://hg.adblockplus.org/buildtools/rev/097b8d9c43a8
Patch Set: Created Feb. 14, 2018, 10:49 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 | packagerChrome.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packager.py
diff --git a/packager.py b/packager.py
index 06ea732acb71191ef28a0ac2ac27220d56e7d85b..ab9557148de8834951ea1ea93e83c55a0be18cf9 100644
--- a/packager.py
+++ b/packager.py
@@ -42,6 +42,14 @@ def get_extension(platform, has_key_file=False):
return extension
+def get_app_id(release_build, metadata):
+ """Lookup the correct app_id for a build."""
+ suffix = 'release' if release_build else 'devbuild'
+ app_id_option = 'app_id_' + suffix
+
+ return metadata.get('general', app_id_option)
+
+
def getMetadataPath(baseDir, type):
return os.path.join(baseDir, 'metadata.%s' % type)
« no previous file with comments | « no previous file | packagerChrome.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld