From 9785915c2d78dc6feceecbe677998d81adfa50e3 Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Tue, 14 Feb 2023 17:05:48 +0900 Subject: [PATCH] Fix typo Bug: N/A Test: m nothing Change-Id: Ia8b8ba7582ac93643d485cf3340066efdbddcae5 --- android/paths.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/android/paths.go b/android/paths.go index 6c3009f4c..eaa6a8d0b 100644 --- a/android/paths.go +++ b/android/paths.go @@ -1709,10 +1709,10 @@ func makePathForInstall(ctx ModuleInstallPathContext, os OsType, arch ArchType, func pathForInstall(ctx PathContext, os OsType, arch ArchType, partition string, debug bool, pathComponents ...string) InstallPath { - var partionPaths []string + var partitionPaths []string if os.Class == Device { - partionPaths = []string{"target", "product", ctx.Config().DeviceName(), partition} + partitionPaths = []string{"target", "product", ctx.Config().DeviceName(), partition} } else { osName := os.String() if os == Linux { @@ -1734,21 +1734,21 @@ func pathForInstall(ctx PathContext, os OsType, arch ArchType, partition string, if os.Class == Host && (arch == X86_64 || arch == Common) { archName = "x86" } - partionPaths = []string{"host", osName + "-" + archName, partition} + partitionPaths = []string{"host", osName + "-" + archName, partition} } if debug { - partionPaths = append([]string{"debug"}, partionPaths...) + partitionPaths = append([]string{"debug"}, partitionPaths...) } - partionPath, err := validatePath(partionPaths...) + partitionPath, err := validatePath(partitionPaths...) if err != nil { reportPathError(ctx, err) } base := InstallPath{ - basePath: basePath{partionPath, ""}, + basePath: basePath{partitionPath, ""}, soongOutDir: ctx.Config().soongOutDir, - partitionDir: partionPath, + partitionDir: partitionPath, partition: partition, }