File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1313from fastmcp .exceptions import ToolError
1414from pydantic import BaseModel , Field
1515
16- from common .utils import init_kerberos_ticket , KerberosError
16+ from common .utils import init_kerberos_ticket , KerberosError , is_cs_branch
1717from common .validators import AbsolutePath
1818
1919COPR_CONFIG = {
@@ -61,7 +61,9 @@ def _branch_to_chroot(dist_git_branch: str) -> str:
6161 if not m :
6262 raise ValueError (f"Unsupported branch name: { dist_git_branch } " )
6363 majorver = next (g for g in m .groups () if g is not None )
64- return f"rhel-{ majorver } .dev"
64+ # build only cNs against target with .dev suffix
65+ suffix = ".dev" if is_cs_branch (dist_git_branch ) else ""
66+ return f"rhel-{ majorver } { suffix } "
6567
6668
6769async def build_package (
You can’t perform that action at this time.
0 commit comments