Merge "Ensure current.zip is put in the right place."

This commit is contained in:
Mathew Inwood 2021-05-06 15:21:04 +00:00 committed by Gerrit Code Review
commit 7e554ec2de
1 changed files with 2 additions and 2 deletions

View File

@ -307,8 +307,8 @@ func (s *sdk) GenerateAndroidBuildActions(ctx android.ModuleContext) {
// Generate the snapshot from the member info.
p := s.buildSnapshot(ctx, sdkVariants)
s.snapshotFile = android.OptionalPathForPath(p)
ctx.InstallFile(android.PathForMainlineSdksInstall(ctx), s.Name()+"-current.zip", p)
zip := ctx.InstallFile(android.PathForMainlineSdksInstall(ctx), p.Base(), p)
s.snapshotFile = android.OptionalPathForPath(zip)
}
}