From 4859e374a97bada34f5d02c80a381534e8d46cee Mon Sep 17 00:00:00 2001 From: isa Date: Tue, 1 Oct 2024 16:27:57 -0400 Subject: [PATCH] Fix no git_owner when building from htts cloned repo --- .../recipes-core/citadel-tools/citadel-tools_0.1.0.bb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meta-citadel/recipes-core/citadel-tools/citadel-tools_0.1.0.bb b/meta-citadel/recipes-core/citadel-tools/citadel-tools_0.1.0.bb index b3aa89e..7b4ca2f 100644 --- a/meta-citadel/recipes-core/citadel-tools/citadel-tools_0.1.0.bb +++ b/meta-citadel/recipes-core/citadel-tools/citadel-tools_0.1.0.bb @@ -13,7 +13,12 @@ SRCREV = "24f786cf75d093b617511ef568e3f231b52b320d" # get git repo owner from citadel to find the correct citadel-tools repo path python () { import subprocess - git_owner = subprocess.check_output(['git', 'remote', 'get-url', 'origin']).strip().decode('utf-8').split('/')[0].split(':')[1] + git_url = subprocess.check_output(['git', 'remote', 'get-url', 'origin']).strip().decode('utf-8') + if git_url.startswith("git"): + git_owner = git_url.split('/')[0].split(':')[1] + else: + git_owner = git_url.split('/')[3] + d.setVar("GIT_REPO_OWNER", git_owner) } -- 2.45.2