Filter defaults from license metadata dependencies.
Bug: 239638693 Test: m droid dist Change-Id: Ic094aa706145ddd1cb8a1b134117c83ad41061b7
This commit is contained in:
parent
cf3844c879
commit
7fd521e62e
1 changed files with 5 additions and 0 deletions
|
@ -67,6 +67,11 @@ func buildLicenseMetadata(ctx ModuleContext, licenseMetadataFile WritablePath) {
|
|||
return
|
||||
}
|
||||
|
||||
// Defaults add properties and dependencies that get processed on their own.
|
||||
if ctx.OtherModuleDependencyTag(dep) == DefaultsDepTag {
|
||||
return
|
||||
}
|
||||
|
||||
if ctx.OtherModuleHasProvider(dep, LicenseMetadataProvider) {
|
||||
info := ctx.OtherModuleProvider(dep, LicenseMetadataProvider).(*LicenseMetadataInfo)
|
||||
allDepMetadataFiles = append(allDepMetadataFiles, info.LicenseMetadataPath)
|
||||
|
|
Loading…
Reference in a new issue