From 35b397de81e4eb9f31bba971ba0f9dac614b43fb Mon Sep 17 00:00:00 2001 From: Thomas Lee Date: Tue, 8 Nov 2022 15:02:59 +0800 Subject: [PATCH] Adoptium: change centos to rhel for long term support rpm (#149) * adoptium: use rhel rpm for LTS rhel and variants adoptium: use rhel rpm for LTS rhel and variants https://github.com/adoptium/installer/issues/499#issuecomment-1183208458 * adoptium: keep centos 7, add rhel 7,8,9 --- adoptium.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/adoptium.py b/adoptium.py index 1634d4e..ffcb5f8 100755 --- a/adoptium.py +++ b/adoptium.py @@ -129,6 +129,19 @@ if __name__ == "__main__": "centos@{os_ver}-@{arch}", f"{BASE_PATH}/rpm" ], + check=True) + + # =================== YUM repos ========================== + # "$yum_sync" "${BASE_URL}/rpm/rhel/@{os_ver}/@{arch}" 7 Adopitum x86_64,aarch64 "rhel@{os_ver}-@{arch}" "$BASE_PATH/rpm" + sp.run([str(here/"yum-sync.py"), + BASE_URL+'/rpm/rhel/@{os_ver}/@{arch}', + "--download-repodata", + '7,8,9', + 'Adoptium', + 'x86_64,aarch64', + "rhel@{os_ver}-@{arch}", + f"{BASE_PATH}/rpm" + ], check=True) print("YUM finished", flush=True)