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):
print('autochangelog found')
AUTOCHANGELOG = True
if re.match(r'%autorelease', line):
if re.match(r'^Release:.*%autorelease', line):
print('autorelease found')
AUTORELEASE = True
spec_file.close()
# It was easier to do this then reimplement logic
if AUTOCHANGELOG or AUTORELEASE:
try:
rpmautocl.process_distgit(
rpmautocl.do_process_distgit(
source_git_repo_spec,
f'/tmp/{self.rpm_name}.spec'
)