diff options
author | Justin M. Forbes <jforbes@fedoraproject.org> | 2020-08-24 09:10:00 -0500 |
---|---|---|
committer | Justin M. Forbes <jforbes@fedoraproject.org> | 2020-08-24 09:10:00 -0500 |
commit | 427e0b0cd9f365866f7b2517c77ed712f5df9cc7 (patch) | |
tree | 84269eebd5b635c080ac1c12ec59981ee888ff7a /process_configs.sh | |
parent | b22144999f0a40e1bb720146c2ce708c478a8f74 (diff) | |
download | kernel-427e0b0cd9f365866f7b2517c77ed712f5df9cc7.tar.gz kernel-427e0b0cd9f365866f7b2517c77ed712f5df9cc7.tar.xz kernel-427e0b0cd9f365866f7b2517c77ed712f5df9cc7.zip |
kernel-5.9.0-0.rc2.1
* Mon Aug 24 2020 Fedora Kernel Team <kernel-team@fedoraproject.org> [5.9.0-0.rc2.1]
- v5.9-rc2 rebase
- Updated changelog for the release based on c3d8f220d012 (Fedora Kernel Team)
Resolves: rhbz#
Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
Diffstat (limited to 'process_configs.sh')
-rwxr-xr-x | process_configs.sh | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/process_configs.sh b/process_configs.sh index 14773fef2..92cc79701 100755 --- a/process_configs.sh +++ b/process_configs.sh @@ -15,6 +15,11 @@ usage() echo " -t: test run, do not overwrite original config" echo " -w: error on misconfigured config options" echo " -z: commit new configs to pending directory" + echo "" + echo " A special CONFIG file tag, process_configs_known_broken can be added as a" + echo " comment to any CONFIG file. This tag indicates that there is no way to " + echo " fix a CONFIG's entry. This tag should only be used in extreme cases" + echo " and is not to be used as a workaround to solve CONFIG problems." exit 1 } @@ -67,8 +72,23 @@ checkoptions() } ' $1 $2 > .mismatches + checkoptions_error=false if test -s .mismatches then + while read LINE + do + if find ./ -name $(echo $LINE | awk -F "=" ' { print $1 } ' | awk ' { print $2 }') | xargs grep ^ | grep -q "process_configs_known_broken"; then + # This is a known broken config. + # See script help warning. + checkoptions_error=false + else + checkoptions_error=true + break + fi + done < .mismatches + + ! $checkoptions_error && return + echo "Error: Mismatches found in configuration files" cat .mismatches RETURNCODE=1 @@ -167,6 +187,7 @@ function commit_new_configs() if [ "$arch" = "EMPTY" ] then # This arch is intentionally left blank + rm -f "${cfg}.orig" continue fi echo -n "Checking for new configs in $cfg ... " @@ -201,6 +222,7 @@ function process_configs() if [ "$arch" = "EMPTY" ] then # This arch is intentionally left blank + rm -f "${cfg}.orig" continue fi echo -n "Processing $cfg ... " @@ -244,7 +266,7 @@ function process_configs() else mv ${cfgtmp} ${cfg} fi - rm ${cfgorig} + rm -f ${cfgorig} echo "done" done rm "$SCRIPT_DIR"/*.config*.old |