summaryrefslogtreecommitdiff
path: root/apex/apex_singleton.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2020-10-07 17:58:00 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2020-10-07 17:58:00 +0000
commit43159bd1b7c99790d84fdedda09db3701d466f30 (patch)
tree35345376d9aa3db8fde6b578017b99894a2c01ea /apex/apex_singleton.go
parenta87ea4587da10cc9da000d4ea4b11b1aa7806e7a (diff)
parent56a8321c210bf73c7b9f177849ff4a6b6192d237 (diff)
Merge "Remove global state from apex modules"
Diffstat (limited to 'apex/apex_singleton.go')
-rw-r--r--apex/apex_singleton.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/apex/apex_singleton.go b/apex/apex_singleton.go
index afb739cef..803e0c559 100644
--- a/apex/apex_singleton.go
+++ b/apex/apex_singleton.go
@@ -72,8 +72,11 @@ func (s *apexDepsInfoSingleton) GenerateBuildActions(ctx android.SingletonContex
updatableFlatLists := android.Paths{}
ctx.VisitAllModules(func(module android.Module) {
if binaryInfo, ok := module.(android.ApexBundleDepsInfoIntf); ok {
- if path := binaryInfo.FlatListPath(); path != nil && binaryInfo.Updatable() {
- updatableFlatLists = append(updatableFlatLists, path)
+ apexInfo := ctx.ModuleProvider(module, android.ApexInfoProvider).(android.ApexInfo)
+ if path := binaryInfo.FlatListPath(); path != nil {
+ if binaryInfo.Updatable() || apexInfo.Updatable {
+ updatableFlatLists = append(updatableFlatLists, path)
+ }
}
}
})