diff options
author | Alex Stetson <alexstetson@google.com> | 2021-09-22 10:03:15 -0700 |
---|---|---|
committer | Alex Stetson <alexstetson@google.com> | 2021-09-22 10:03:15 -0700 |
commit | 81d1d4677a2af8ea9466f89aff0321286b26b4c7 (patch) | |
tree | 0b4ffe2a66c93cdbc1e3a7041a613e9fb593aa31 /tools | |
parent | 6c1dbe9ab9f008f580a9b4c47b79c488ee4407b4 (diff) | |
download | tests-81d1d4677a2af8ea9466f89aff0321286b26b4c7.tar.gz |
Add plurals to ignore string check
The ignore string parameter should also apply to plural strings, since
otherwise they cannot be removed properly.
Bug: 199229954
Test: manual
Change-Id: I0bbe6f08ccd995a68fad00a731d2def3d579e454
Diffstat (limited to 'tools')
-rw-r--r-- | tools/rro/resource_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/rro/resource_utils.py b/tools/rro/resource_utils.py index 8628abf..11e8edc 100644 --- a/tools/rro/resource_utils.py +++ b/tools/rro/resource_utils.py @@ -111,7 +111,7 @@ def get_resources_from_single_file(filename, ignore_strings=False): resType = "array" if resource.tag == 'item' or resource.tag == 'public': resType = resource.get('type') - if resType == 'string' and ignore_strings: + if (resType == 'string' or resType == 'plurals') and ignore_strings: continue if resType == 'overlayable': for policy in resource: |