Learn more about these different git repos.
Other Git URLs
Hi, I hope I am not opening a duplicate issue, but at the first sight, I haven't seen the similar one.
During the release process, I used a tool rpmdev-bumpspec rpkg.spec on my specfile: https://src.fedoraproject.org/rpms/rpkg/blob/rawhide/f/rpkg.spec and it was refused to be processed further
rpmdev-bumpspec rpkg.spec
RPMAutoSpec usage detected, not changing the spec file.
Environment: Fedora 35 docker rpmdevtools-9.6-1.fc35.noarch pip3 version of rpmautospec 0.3.0
It looks that file is processed as a whole and matches expressions (misc.py):
autorelease_re = re.compile(r"%(?:autorelease(?:\s|$)|\{\??autorelease(?:\s+[^\}]*)?\})") changelog_re = re.compile(r"^%changelog(?:\s.*)?$", re.IGNORECASE)
matches are located in the changelog part of the specfile. I am wondering whether it is possible to skip checking this part of the specfile?
Sorry for the late response, and agreed, that check should ignore anything beneath %changelog.
%changelog
Metadata Update from @nphilipp: - Issue assigned to nphilipp
Metadata Update from @nphilipp: - Issue tagged with: Bug
Commit edf18a1 fixes this issue
Thanks!
Log in to comment on this ticket.