Skip to content

Commit

Permalink
Merge pull request #1305 from mavit/autochangelog
Browse files Browse the repository at this point in the history
%{autochangelog} in the changelog section should not cause a warning
  • Loading branch information
danigm authored Jan 7, 2025
2 parents 1b6e4a9 + 16d75bf commit d660441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpmlint/checks/SpecCheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ def _checkline_changelog(self, line):
'%%changelog: %s' % deptoken)
for match in self.macro_regex.findall(line):
res = re.match('%+', match)
if len(res.group(0)) % 2 and match != '%autochangelog':
if len(res.group(0)) % 2 and match != '%autochangelog' and match != '%{autochangelog}':
self.output.add_info('W', self.pkg, 'macro-in-%changelog', match)
else:
if not self.depscript_override:
Expand Down

0 comments on commit d660441

Please sign in to comment.