From: Don Zickus <dzickus(a)redhat.com>
Don't create empty pending-common files on pending-fedora commits
There is a bug in gen_config_patches.sh which will assumes all new
configs are in redhat/configs/pending-common. This is not true
for pending-fedora configs. As a result the script reads the
pending-feodra config and tries to copy a pending-common config
into the final location.
The pending-common file does not exist thus creating an empty final
config file.
Fix this by filtering out any pending-fedora configs from the list of
configs to process.
Tested manually.
Signed-off-by: Don Zickus <dzickus(a)redhat.com>
diff a/redhat/gen_config_patches.sh b/redhat/gen_config_patches.sh
--- a/redhat/gen_config_patches.sh
+++ b/redhat/gen_config_patches.sh
@@ -23,7 +23,8 @@ function cleanup {
trap cleanup EXIT
# Easy way to get each of the files to process
-git diff --name-only HEAD HEAD^ > "$tmpdir"/new_config_files
+# Not interested in Fedora configs
+git diff --name-only HEAD HEAD^ | grep -v "pending-fedora" >
"$tmpdir"/new_config_files
while read -r line; do
# Read all the files and split up by file path of each config item.
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1060