summaryrefslogtreecommitdiff
path: root/apex/apex_singleton.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2020-10-07 19:51:03 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-10-07 19:51:03 +0000
commit393b394b854aa4555e036da2fb5e880ab9d0952c (patch)
tree666523dbe6a984f3173b031c54d2108585294d11 /apex/apex_singleton.go
parent9c3caa7815b1ce7f50be6dd41ba0db5e2a2b0d7e (diff)
parent2c76247f5162f3bdfa13ffc4cffbf41e94cfffbe (diff)
Merge "Remove global state from apex modules" am: 43159bd1b7 am: 21bb1d491c am: 2c76247f51
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1428815 Change-Id: I931b01c9ec6905698fef4fbbbdee47224291186e
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)
+ }
}
}
})