diff options
author | mnaganov@chromium.org <mnaganov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-11 10:19:09 +0000 |
---|---|---|
committer | mnaganov@chromium.org <mnaganov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-11 10:19:09 +0000 |
commit | f17a27c6a4ebc292820c9dbed24e7ae7667622b0 (patch) | |
tree | d149a1348484c148baf47f6021f278ef6f70336b | |
parent | 5b1e85ac9f00a23a731ddf956ef67faab9656fc5 (diff) | |
download | chromium_src-f17a27c6a4ebc292820c9dbed24e7ae7667622b0.zip chromium_src-f17a27c6a4ebc292820c9dbed24e7ae7667622b0.tar.gz chromium_src-f17a27c6a4ebc292820c9dbed24e7ae7667622b0.tar.bz2 |
[Android WebView] Fix GetIncompatibleDirectories to ignore string case for the metadata
This is to allow any case of "yes" in the "License Android Compatible" field.
NOTRY=true
TBR=torne@chromium.org
Review URL: https://chromiumcodereview.appspot.com/12221114
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181674 0039d316-1c4b-4281-b951-d872f2087c98
-rwxr-xr-x | android_webview/tools/webview_licenses.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android_webview/tools/webview_licenses.py b/android_webview/tools/webview_licenses.py index 3e9aef6..1cbba08 100755 --- a/android_webview/tools/webview_licenses.py +++ b/android_webview/tools/webview_licenses.py @@ -64,7 +64,7 @@ def GetIncompatibleDirectories(): except licenses.LicenseError as e: print 'Got LicenseError while scanning ' + directory raise - if metadata.get('License Android Compatible', 'no') == 'yes': + if metadata.get('License Android Compatible', 'no').upper() == 'YES': continue license = re.split(' [Ll]icenses?$', metadata['License'])[0] tokens = [x.strip() for x in re.split(' and |,', license) if len(x) > 0] |