summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Liz Kammer <eakammer@google.com> 2022-01-04 12:52:43 -0500
committer Liz Kammer <eakammer@google.com> 2022-01-04 12:53:41 -0500
commit9f68d211553d3add06c49f63734b5579539012b8 (patch)
tree0394aa2cf790880de9a6271f5492d72d2a624e83
parent69e87311010a410cb8cb676c82d1642784211a0f (diff)
Correct typo in prebuilt_etc property name.
Test: run bpfix Change-Id: I5556eed9ded8e9d6f756a871a5eceb99ed97edee
-rw-r--r--bpfix/bpfix/bpfix.go2
-rw-r--r--bpfix/bpfix/bpfix_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/bpfix/bpfix/bpfix.go b/bpfix/bpfix/bpfix.go
index c0925fe3b..5421ccab5 100644
--- a/bpfix/bpfix/bpfix.go
+++ b/bpfix/bpfix/bpfix.go
@@ -641,7 +641,7 @@ func rewriteAndroidmkPrebuiltEtc(f *Fixer) error {
// 'srcs' --> 'src' conversion
convertToSingleSource(mod, "src")
- renameProperty(mod, "sub_dir", "relative_install_dir")
+ renameProperty(mod, "sub_dir", "relative_install_path")
// The rewriter converts LOCAL_MODULE_PATH attribute into a struct attribute
// 'local_module_path'. Analyze its contents and create the correct sub_dir:,
diff --git a/bpfix/bpfix/bpfix_test.go b/bpfix/bpfix/bpfix_test.go
index 221df45ce..21ca75f50 100644
--- a/bpfix/bpfix/bpfix_test.go
+++ b/bpfix/bpfix/bpfix_test.go
@@ -824,7 +824,7 @@ func TestRewritePrebuiltEtc(t *testing.T) {
out: `prebuilt_etc {
name: "foo",
src: "bar",
- relative_install_dir: "baz",
+ relative_install_path: "baz",
}
`,
},