Index: tools/licenses.py |
diff --git a/tools/licenses.py b/tools/licenses.py |
index 9f33ffb8450ef0e440658c997302b3c55a904bf1..ee65177cb96aed73d60f3617ee6df9c49b91253f 100755 |
--- a/tools/licenses.py |
+++ b/tools/licenses.py |
@@ -493,7 +493,7 @@ def GetThirdPartyDepsFromGNDepsOutput(gn_deps): |
third_party_deps = set() |
for build_dep in gn_deps.split(): |
m = re.search(r'^(.+/third_party/[^/]+)/(.+/)?BUILD\.gn$', build_dep) |
- if m: |
+ if m and not os.path.join('build', 'secondary') in build_dep: |
third_party_deps.add(m.group(1)) |
return third_party_deps |