From a7f0668c114877da09b07a101bfe2afc323b15b7 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Wed, 25 Sep 2024 14:49:58 -0700 Subject: [PATCH] Fix distgit calls --- pv2/importer/operation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pv2/importer/operation.py b/pv2/importer/operation.py index 8439832..b2c7889 100644 --- a/pv2/importer/operation.py +++ b/pv2/importer/operation.py @@ -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' )