Index: chromecast/tools/build/chromecast_repack_locales.py |
diff --git a/chromecast/tools/build/chromecast_repack_locales.py b/chromecast/tools/build/chromecast_repack_locales.py |
index 607930a7c2173ade06f0f2d0f77b4ca39b38e901..fec1011a941b4bf49d29ada8c4ad76aa115d0ad6 100755 |
--- a/chromecast/tools/build/chromecast_repack_locales.py |
+++ b/chromecast/tools/build/chromecast_repack_locales.py |
@@ -41,7 +41,7 @@ def calc_output(locale): |
def calc_inputs(locale): |
"""Determine the files that need processing for the given locale.""" |
inputs = [] |
- if CHROMECAST_BRANDING == 'Chrome': |
+ if CHROMECAST_BRANDING != 'public': |
inputs.append(os.path.join(GRIT_DIR, 'app_strings_%s.pak' % locale)) |
inputs.append(os.path.join(GRIT_DIR, 'chromecast_settings_%s.pak' % locale)) |
return inputs |
@@ -99,7 +99,8 @@ def DoMain(argv): |
parser.add_option("-x", action="store", dest="int_dir", |
help="Intermediate build files output directory.") |
parser.add_option("-b", action="store", dest="chromecast_branding", |
- help="Chromecast branding ('Chrome' or 'Chromium').") |
+ help="Chromecast branding " + |
+ "('public', 'internal' or 'google').") |
options, locales = parser.parse_args(argv) |
if not locales: |
@@ -111,8 +112,11 @@ def DoMain(argv): |
INT_DIR = options.int_dir |
CHROMECAST_BRANDING = options.chromecast_branding |
- if CHROMECAST_BRANDING != "Chrome" and CHROMECAST_BRANDING != "Chromium": |
- parser.error('Chromecast branding (-b) must be "Chrome" or "Chromium".\n') |
+ if (CHROMECAST_BRANDING != 'public' and |
+ CHROMECAST_BRANDING != 'internal' and |
+ CHROMECAST_BRANDING != 'google'): |
+ parser.error('Chromecast branding (-b) must be ' + |
+ '"public", "internal" or "google".\n') |
if not (GRIT_DIR and INT_DIR): |
parser.error('Please specify all of "-g" and "-x".\n') |
if print_inputs and print_outputs: |