From 16d75bf4df9c1c7d5f642b68b0b2730a6d39454d Mon Sep 17 00:00:00 2001 From: Peter Oliver Date: Sat, 21 Dec 2024 00:16:20 +0000 Subject: [PATCH] %{autochangelog} in the changelog section should not cause a warning --- rpmlint/checks/SpecCheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpmlint/checks/SpecCheck.py b/rpmlint/checks/SpecCheck.py index 54dfb6da0..6f1f15e8d 100644 --- a/rpmlint/checks/SpecCheck.py +++ b/rpmlint/checks/SpecCheck.py @@ -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: