From 99e4dcaf32cccb950122ac1946c882e754f119db Mon Sep 17 00:00:00 2001 From: Andrii Nikitin Date: Mon, 21 Oct 2024 16:26:02 +0200 Subject: [PATCH] Dont add SLE_ prefix to repo in openQA if it starts with "SL" --- script/scriptgen.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/script/scriptgen.py b/script/scriptgen.py index a4b00491..7c6020e9 100644 --- a/script/scriptgen.py +++ b/script/scriptgen.py @@ -1089,7 +1089,13 @@ def gen_print_openqa(self, f): if self.repos or self.repolink: if self.ag.brand == "ibs": self.p(" i=9", f) # temporary to simplify diff with old rsync scripts, may be removed later - self.p(cfg.openqa_call_repot(self.build_id_from_iso, self.repos), f, "REPOTYPE", "''", "REPOPREFIX", "SLE_") + # some trickery for REPO_SLE_ vs REPO_SL_ variables in ibs + sl = "SLE_" + for r in self.repos: + if r.tag.startswith("SL"): + sl = "" + break + self.p(cfg.openqa_call_repot(self.build_id_from_iso, self.repos), f, "REPOTYPE", "''", "REPOPREFIX", sl) repodirs = self.repodirs if not repodirs and self.repolink: