aboutsummaryrefslogtreecommitdiffstats
path: root/apex/builder.go
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2020-01-28 15:40:19 -0800
committerDan Willemsen <dwillemsen@google.com>2020-01-28 15:40:19 -0800
commit81e43c59944057d3d0c70beda0ed347ab53c26d1 (patch)
tree15e2230e873786f8375ea63a83bc6025970626bf /apex/builder.go
parent7c78b3c98ee42a72131cf3e522a06c61b8fdfe1c (diff)
downloadbuild_soong-81e43c59944057d3d0c70beda0ed347ab53c26d1.tar.gz
build_soong-81e43c59944057d3d0c70beda0ed347ab53c26d1.tar.bz2
build_soong-81e43c59944057d3d0c70beda0ed347ab53c26d1.zip
Fix rebuilding with whitelisted_files
All commands must produce their output files, or they'll trigger rebuilds the next build. Test: m com.android.apex.cts.shim.v3; repeat; "ninja: nothing to do" Change-Id: If30e9d90ce3efc0689cd04ac62cc8207f3a38dd5
Diffstat (limited to 'apex/builder.go')
-rw-r--r--apex/builder.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/apex/builder.go b/apex/builder.go
index 8ae2b5c4..f245ca7e 100644
--- a/apex/builder.go
+++ b/apex/builder.go
@@ -160,7 +160,7 @@ var (
`echo -e "New unexpected files were added to ${apex_module_name}." ` +
` "To fix the build run following command:" && ` +
`echo "system/apex/tools/update_whitelist.sh ${whitelisted_files_file} ${image_content_file}" && ` +
- `exit 1)`,
+ `exit 1); touch ${out}`,
Description: "Diff ${image_content_file} and ${whitelisted_files_file}",
}, "image_content_file", "whitelisted_files_file", "apex_module_name")
)