From e4c02c21ff5dbac663b3c3f57bdf3431bec4595b Mon Sep 17 00:00:00 2001 From: Nikola Forró Date: Jan 30 2025 09:32:50 +0000 Subject: Relax SIG branch matching Make the regex match also branches with a custom suffix, such as branches created by Packit propose-downstream or pull-from-upstream. Signed-off-by: Nikola Forró --- diff --git a/src/centpkg/__init__.py b/src/centpkg/__init__.py index 3667b98..bd09ce1 100644 --- a/src/centpkg/__init__.py +++ b/src/centpkg/__init__.py @@ -54,7 +54,7 @@ class DistGitDirectory(object): javabranchre = r"openjdk-portable-centos-(?P\d+)" oldbranchre = r"(?P\w+)(?P\d)" rhelmatch = re.search(rhelbranchre, branchtext) - sigmatch = re.match(sigtobranchre, branchtext) + sigmatch = re.search(sigtobranchre, branchtext) distromatch = re.match(distrobranchre, branchtext) javamatch = re.match(javabranchre, branchtext) oldbranchmatch = re.match(oldbranchre, branchtext)