From 7e008ca73c5ccb24c9bfaddf3d138312f40056eb Mon Sep 17 00:00:00 2001 From: Dongsu Park Date: Tue, 31 Mar 2020 08:27:28 +0200 Subject: [PATCH] .github: also generate metadata on kernel-apply-patch --- .../coreos-overlay/.github/workflows/kernel-apply-patch.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sdk_container/src/third_party/coreos-overlay/.github/workflows/kernel-apply-patch.sh b/sdk_container/src/third_party/coreos-overlay/.github/workflows/kernel-apply-patch.sh index c37d692bc5..90040c554c 100755 --- a/sdk_container/src/third_party/coreos-overlay/.github/workflows/kernel-apply-patch.sh +++ b/sdk_container/src/third_party/coreos-overlay/.github/workflows/kernel-apply-patch.sh @@ -17,7 +17,12 @@ for pkg in sources modules kernel; do \ popd >/dev/null || exit; \ done -( cd ../../..; exec cork enter -- ebuild "/mnt/host/source/src/third_party/coreos-overlay/sys-kernel/coreos-sources/coreos-sources-${VERSION_NEW}.ebuild" manifest --force ) +function enter() ( cd ../../..; exec cork enter -- $@ ) + +enter ebuild "/mnt/host/source/src/third_party/coreos-overlay/sys-kernel/coreos-sources/coreos-sources-${VERSION_NEW}.ebuild" manifest --force + +# Generate metadata after the main commit was done. +enter /mnt/host/source/src/scripts/update_metadata --commit coreos # We can only create the actual commit in the actual source directory, not under the SDK. # So create a format-patch, and apply to the actual source.