summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2019-09-19 10:42:36 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-09-19 10:42:36 -0700
commit9fd111d6eb789597de4aaf480ced216e7766e01c (patch)
treef8c2c62094e102fa8e3922e1702a31fc35e0dcfb
parent1dfdf290dcab268968aa8d4217986f715edefd1a (diff)
parent51931e2522b6703c5e9aa89419db5783c71843ed (diff)
downloadcurrysrc-9fd111d6eb789597de4aaf480ced216e7766e01c.tar.gz
Restore TEST_MAPPING files removed during repackaging
am: 51931e2522 Change-Id: Ia28b1b92553bc8ba24ba51d3b32c3e3c2f8f34cf
-rw-r--r--scripts/repackage-common.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/repackage-common.sh b/scripts/repackage-common.sh
index 23985b2..94af157 100644
--- a/scripts/repackage-common.sh
+++ b/scripts/repackage-common.sh
@@ -163,6 +163,9 @@ function do_transform() {
--target-dir ${SRC_OUT_DIR} \
--change-log ${CHANGE_LOG} \
${REPACKAGE_ARGS}
+
+ # Restore TEST_MAPPING files that may have been removed from the source directory
+ (cd $SRC_OUT_DIR; git checkout HEAD $(git status --short | grep -E "^ D .*/TEST_MAPPING$" | cut -c4-))
}
REPACKAGED_DIR=${PROJECT_DIR}/repackaged