rpmautospec: lack of changelog file shouldn't matter

Signed-off-by: Louis Abel <label@rockylinux.org>
This commit is contained in:
Louis Abel 2024-03-08 19:10:05 -07:00
parent 01a6696adc
commit c2297d6189
Signed by: label
GPG Key ID: 2A6975660E424560

View File

@ -811,7 +811,8 @@ class GitImport(Import):
source_git_repo_spec = self.find_spec_file(source_git_repo_path) source_git_repo_spec = self.find_spec_file(source_git_repo_path)
# do rpm autochangelog logic here # do rpm autochangelog logic here
if HAS_RPMAUTOSPEC and os.path.exists(source_git_repo_changelog): #if HAS_RPMAUTOSPEC and os.path.exists(source_git_repo_changelog):
if HAS_RPMAUTOSPEC:
# Check that the spec file really has %autochangelog # Check that the spec file really has %autochangelog
AUTOCHANGELOG = False AUTOCHANGELOG = False
with open(source_git_repo_spec, 'r') as spec_file: with open(source_git_repo_spec, 'r') as spec_file: