From dd2568aca9a6122c97e3ed6a8673e841a45d61b1 Mon Sep 17 00:00:00 2001 From: Scott Little Date: Tue, 12 Sep 2023 15:50:10 -0400 Subject: [PATCH] cengn reference removal mirror.starlingx.cengn.ca no longer exists. CENGN is kindly forwarding requests to the new location mirror.starlingx.windriver.com for now, but that will only last a few months. We need to replace all the references with the new URL. I will also remove as many 'cengn' references as possible, replacing them with 'stx_mirror' TESTS ===== downloader -s -b -B std,rt build-pkgs -a Partial-Bug: 2033555 Signed-off-by: Scott Little Change-Id: I26ade4650b4d6d1879175578055f3b53c6aa75d1 --- build-tools/stx/debrepack.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/build-tools/stx/debrepack.py b/build-tools/stx/debrepack.py index 6b686460..524b38d0 100755 --- a/build-tools/stx/debrepack.py +++ b/build-tools/stx/debrepack.py @@ -35,8 +35,17 @@ DIST = os.environ.get('STX_DIST') # The CENGN_STRATEGY and CENGNURL references is retained for backward # compatability with pre-existing build environments. -CENGN_BASE = os.path.join(os.environ.get('CENGNURL'), "debian") +CENGN_BASE = None +CENGNURL = os.environ.get('CENGNURL') CENGN_STRATEGY = os.environ.get('CENGN_STRATEGY') +if CENGNURL is not None: + CENGN_BASE = os.path.join(CENGNURL, "debian") +STX_MIRROR_BASE = None +STX_MIRROR_URL = os.environ.get('STX_MIRROR_URL') +if STX_MIRROR_URL is not None: + STX_MIRROR_BASE = os.path.join(STX_MIRROR_URL, "debian") +if STX_MIRROR_BASE is None: + STX_MIRROR_BASE = CENGN_BASE STX_MIRROR_BASE = os.path.join(os.environ.get('STX_MIRROR_URL'), "debian") STX_MIRROR_STRATEGY = os.environ.get('STX_MIRROR_STRATEGY') if STX_MIRROR_BASE is None: