Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01201ed2 authored by mrziwang's avatar mrziwang
Browse files

Update the way to get output files in license_metadata

The output files from a module is obtained from OutputFilesProvider
instead of from OutputFileProducer, which is going to be
deprecated.

Test: CI
Bug: 339477385
Change-Id: I2a5488653d9ba05c7ebd5a0b452e75fcc676c893
parent 50fe598e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -45,8 +45,7 @@ func buildLicenseMetadata(ctx ModuleContext, licenseMetadataFile WritablePath) {
	}

	var outputFiles Paths
	if outputFileProducer, ok := ctx.Module().(OutputFileProducer); ok {
		outputFiles, _ = outputFileProducer.OutputFiles("")
	if outputFiles, err := outputFilesForModule(ctx, ctx.Module(), ""); err == nil {
		outputFiles = PathsIfNonNil(outputFiles...)
	}