newdracut.sh: do not include ci: changes in .spec changelog

Related: #2066816
This commit is contained in:
Pavel Valena 2022-07-21 18:20:18 +02:00
parent 478786c6bc
commit 193c972f1e
1 changed files with 4 additions and 2 deletions

View File

@ -52,8 +52,10 @@ if rpm -ivh --define "_srcrpmdir $PWD" --define "_specdir $PWD" --define "_sourc
for ((i=old_release; i<new_release; i++)); do
subject=$(grep '^Subject: ' +(0)$i.patch | head -1)
if [ -n "$subject" ]; then
echo "-${subject#*\[PATCH\]}"
subject="${subject#*\[PATCH\]}"
if [ -n "$subject" ] && [ -z "$(echo $subject | grep '^ci: ')" ]; then
echo "-${subject}"
fi
done