Merge "Notice file embededd in APEX is deterministic" am: 9980c6e111
Change-Id: I25651a62edfcfc111af3591433e2f525b168158e
This commit is contained in:
@@ -485,6 +485,15 @@ func FirstUniquePaths(list Paths) Paths {
|
|||||||
return firstUniquePathsList(list)
|
return firstUniquePathsList(list)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SortedUniquePaths returns what its name says
|
||||||
|
func SortedUniquePaths(list Paths) Paths {
|
||||||
|
unique := FirstUniquePaths(list)
|
||||||
|
sort.Slice(unique, func(i, j int) bool {
|
||||||
|
return unique[i].String() < unique[j].String()
|
||||||
|
})
|
||||||
|
return unique
|
||||||
|
}
|
||||||
|
|
||||||
func firstUniquePathsList(list Paths) Paths {
|
func firstUniquePathsList(list Paths) Paths {
|
||||||
k := 0
|
k := 0
|
||||||
outer:
|
outer:
|
||||||
|
@@ -247,7 +247,7 @@ func (a *apexBundle) buildNoticeFiles(ctx android.ModuleContext, apexFileName st
|
|||||||
return android.NoticeOutputs{}
|
return android.NoticeOutputs{}
|
||||||
}
|
}
|
||||||
|
|
||||||
return android.BuildNoticeOutput(ctx, a.installDir, apexFileName, android.FirstUniquePaths(noticeFiles))
|
return android.BuildNoticeOutput(ctx, a.installDir, apexFileName, android.SortedUniquePaths(noticeFiles))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *apexBundle) buildInstalledFilesFile(ctx android.ModuleContext, builtApex android.Path, imageDir android.Path) android.OutputPath {
|
func (a *apexBundle) buildInstalledFilesFile(ctx android.ModuleContext, builtApex android.Path, imageDir android.Path) android.OutputPath {
|
||||||
|
Reference in New Issue
Block a user