add autochangelog logic

This commit is contained in:
Louis Abel 2024-03-04 17:06:59 -07:00
parent 3e925ca471
commit 90aa3e2016
Signed by: label
GPG Key ID: 2A6975660E424560

View File

@ -813,6 +813,7 @@ class GitImport(Import):
# do rpm autochangelog logic here
if HAS_RPMAUTOSPEC and os.path.exists(source_git_repo_changelog):
# Check that the spec file really has %autochangelog
AUTOCHANGELOG = False
for line in source_git_repo_spec:
if re.search('^%autochangelog', line):
print('autochangelog found')