Remove the mkdir of the parent Directories for protobufs.

Bug: 330794730
Change-Id: I7b221ffc9dde67c27186848727c4a698644507aa
This commit is contained in:
Haamed Gheibi
2024-03-28 04:49:51 +00:00
parent f875565c7f
commit 54af8e62d9

View File

@@ -545,7 +545,6 @@ func (p *PythonLibraryModule) createSrcsZip(ctx android.ModuleContext, pkgPath s
var stagedProtoSrcs android.Paths
for _, srcFile := range protoSrcs {
stagedProtoSrc := pkgPathStagingDir.Join(ctx, pkgPath, srcFile.Rel())
rule.Command().Text("mkdir -p").Flag(filepath.Base(stagedProtoSrc.String()))
rule.Command().Text("cp -f").Input(srcFile).Output(stagedProtoSrc)
stagedProtoSrcs = append(stagedProtoSrcs, stagedProtoSrc)
}