#270 rpkg.spec detection of "autorelease" is false positive
Closed: Fixed a year ago by nphilipp. Opened 2 years ago by onosek.

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

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.

Metadata Update from @nphilipp:
- Issue assigned to nphilipp

a year ago

Metadata Update from @nphilipp:
- Issue tagged with: Bug

a year ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #276 Merged a year ago