From caf230eae75080b47bacbbbc8f5cea842c6dc1d6 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Wed, 25 Sep 2024 14:36:52 -0700 Subject: [PATCH] autorelease is not being caught, fix that --- pv2/importer/operation.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pv2/importer/operation.py b/pv2/importer/operation.py index 57cf20e..8439832 100644 --- a/pv2/importer/operation.py +++ b/pv2/importer/operation.py @@ -832,14 +832,18 @@ class GitImport(Import): if HAS_RPMAUTOSPEC: # Check that the spec file really has %autochangelog AUTOCHANGELOG = False + AUTORELEASE = False with open(source_git_repo_spec, 'r') as spec_file: for line in spec_file: if re.match(r'^%autochangelog', line): print('autochangelog found') AUTOCHANGELOG = True + if re.match(r'%autorelease', line): + print('autorelease found') + AUTORELEASE = True spec_file.close() # It was easier to do this then reimplement logic - if AUTOCHANGELOG: + if AUTOCHANGELOG or AUTORELEASE: try: rpmautocl.process_distgit( source_git_repo_spec,