if ! grep -sq "^%%autochangelog" $specfile; then
# If the specfile doesn't have the magic string then the
# package definitely needs to be rebuilt.
- grep -sq %fedora-rebuild-name $specfile || exit 99
+ grep -sqF %fedora-rebuild-name $specfile || exit 99
else
# Using autochangelog.
- git log | grep -sq %fedora-rebuild-name || exit 99
+ git log | grep -sqF %fedora-rebuild-name || exit 99
fi
# Else we must check Koji itself.
# If the specfile doesn't have the magic string then add
# that now.
- if ! grep -sq %fedora-rebuild-name $specfile; then
+ if ! grep -sqF %fedora-rebuild-name $specfile; then
rpmdev-bumpspec -c "- "%fedora-rebuild-name $rightmost *.spec
else
rpmdev-bumpspec -c "- Bump release and rebuild" $rightmost *.spec
fedpkg commit -c
else
# Using autochangelog.
- if ! git log | grep -sq %fedora-rebuild-name; then
+ if ! git log | grep -sqF %fedora-rebuild-name; then
git commit --allow-empty -m %fedora-rebuild-name
else
git commit --allow-empty -m "Bump release and rebuild"