diff options
author | mgiuca <mgiuca@chromium.org> | 2015-08-05 21:21:20 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-06 04:22:02 +0000 |
commit | b28c3be9c9bfeaccd3f5804a2b27519609a8efdc (patch) | |
tree | df603ae387c0d5174ef315979375b8bc8b82d2cf /remoting/tools | |
parent | e145b91dd677b4cbb5b04307c61b79ada06a9f87 (diff) | |
download | chromium_src-b28c3be9c9bfeaccd3f5804a2b27519609a8efdc.zip chromium_src-b28c3be9c9bfeaccd3f5804a2b27519609a8efdc.tar.gz chromium_src-b28c3be9c9bfeaccd3f5804a2b27519609a8efdc.tar.bz2 |
remoting_localize: Remove duplicates from the locale list.
In the GN build, en and en_US are both supplied. If the script emits
duplicate entries, build-webapp.py will crash. Therefore, we remove
duplicates.
BUG=516271
Review URL: https://codereview.chromium.org/1267933002
Cr-Commit-Position: refs/heads/master@{#342059}
Diffstat (limited to 'remoting/tools')
-rwxr-xr-x | remoting/tools/build/remoting_localize.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/remoting/tools/build/remoting_localize.py b/remoting/tools/build/remoting_localize.py index db4d58c..f1f437b 100755 --- a/remoting/tools/build/remoting_localize.py +++ b/remoting/tools/build/remoting_localize.py @@ -651,6 +651,8 @@ class GypTemplate(Template): def Localize(source, locales, options): # Set the list of languages to use. languages = map(NormalizeLanguageCode, locales) + # Remove duplicates. + languages = sorted(set(languages)) context = { 'languages' : languages } # Load the localized messages. |