Fix distgit calls

This commit is contained in:
Louis Abel 2024-09-25 14:49:58 -07:00
parent caf230eae7
commit a7f0668c11
Signed by: label
GPG Key ID: 2A6975660E424560

View File

@ -838,14 +838,14 @@ class GitImport(Import):
if re.match(r'^%autochangelog', line): if re.match(r'^%autochangelog', line):
print('autochangelog found') print('autochangelog found')
AUTOCHANGELOG = True AUTOCHANGELOG = True
if re.match(r'%autorelease', line): if re.match(r'^Release:.*%autorelease', line):
print('autorelease found') print('autorelease found')
AUTORELEASE = True AUTORELEASE = True
spec_file.close() spec_file.close()
# It was easier to do this then reimplement logic # It was easier to do this then reimplement logic
if AUTOCHANGELOG or AUTORELEASE: if AUTOCHANGELOG or AUTORELEASE:
try: try:
rpmautocl.process_distgit( rpmautocl.do_process_distgit(
source_git_repo_spec, source_git_repo_spec,
f'/tmp/{self.rpm_name}.spec' f'/tmp/{self.rpm_name}.spec'
) )