regex fixes

This commit is contained in:
Louis Abel 2024-03-04 17:09:33 -07:00
parent 90aa3e2016
commit 99035af3e9
Signed by: label
GPG Key ID: 2A6975660E424560

View File

@ -815,7 +815,7 @@ class GitImport(Import):
# Check that the spec file really has %autochangelog # Check that the spec file really has %autochangelog
AUTOCHANGELOG = False AUTOCHANGELOG = False
for line in source_git_repo_spec: for line in source_git_repo_spec:
if re.search('^%autochangelog', line): if re.search(r'^%autochangelog', line):
print('autochangelog found') print('autochangelog found')
AUTOCHANGELOG = True AUTOCHANGELOG = True
# It was easier to do this then reimplement logic # It was easier to do this then reimplement logic