VSDK: etc snapshot may have sub_dir for relative_install_path
prebuilt_etc may use sub_dir property to define a relative install path. Use SubDir() to read either sub_dir or relative_install_path property. Bug: 282080219 Test: m vendor-image Change-Id: I07a21c5aeb87b403854ed32976d26e70b046b8c1
This commit is contained in:
parent
8ef13dbb0c
commit
8bd3afe68c
1 changed files with 1 additions and 3 deletions
|
@ -652,9 +652,7 @@ func generatePrebuiltSnapshot(s snapshot.SnapshotSingleton, ctx android.Singleto
|
||||||
prop := snapshot.SnapshotJsonFlags{}
|
prop := snapshot.SnapshotJsonFlags{}
|
||||||
propOut := snapshotLibOut + ".json"
|
propOut := snapshotLibOut + ".json"
|
||||||
prop.InitBaseSnapshotProps(m)
|
prop.InitBaseSnapshotProps(m)
|
||||||
if m.subdirProperties.Relative_install_path != nil {
|
prop.RelativeInstallPath = m.SubDir()
|
||||||
prop.RelativeInstallPath = *m.subdirProperties.Relative_install_path
|
|
||||||
}
|
|
||||||
|
|
||||||
if m.properties.Filename != nil {
|
if m.properties.Filename != nil {
|
||||||
prop.Filename = *m.properties.Filename
|
prop.Filename = *m.properties.Filename
|
||||||
|
|
Loading…
Reference in a new issue