| commit | 38db1b09746416b96a968234c953193d3d8a05c5 | [log] [tgz] |
|---|---|---|
| author | Treehugger Robot <treehugger-gerrit@google.com> | Mon May 17 13:55:49 2021 +0000 |
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Mon May 17 13:55:49 2021 +0000 |
| tree | 1e851883da415cdbb31ec1c6e4797d85b520ec4a | |
| parent | 0096079bbcc1a5c8702ae33e3bd691d9701b762f [diff] | |
| parent | bf8147ab66de4a2e7f1a349418b8eda82fb428f1 [diff] |
Merge "Don't install rust modules that are never installable"
diff --git a/rust/rust.go b/rust/rust.go index f068b3d..46c8f25 100644 --- a/rust/rust.go +++ b/rust/rust.go
@@ -619,6 +619,10 @@ } func (mod *Module) installable(apexInfo android.ApexInfo) bool { + if !mod.EverInstallable() { + return false + } + // The apex variant is not installable because it is included in the APEX and won't appear // in the system partition as a standalone file. if !apexInfo.IsForPlatform() {