From 9f68d211553d3add06c49f63734b5579539012b8 Mon Sep 17 00:00:00 2001 From: Liz Kammer Date: Tue, 4 Jan 2022 12:52:43 -0500 Subject: [PATCH] Correct typo in prebuilt_etc property name. Test: run bpfix Change-Id: I5556eed9ded8e9d6f756a871a5eceb99ed97edee --- bpfix/bpfix/bpfix.go | 2 +- bpfix/bpfix/bpfix_test.go | 2 +- 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", } `, },