adoptium: keep centos 7, add rhel 7,8,9

This commit is contained in:
Thomas Lee 2022-11-08 14:58:23 +08:00 committed by GitHub
parent 86a396f849
commit c3040500ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,6 +118,19 @@ if __name__ == "__main__":
], ],
check=True) check=True)
print("APT finished", flush=True) print("APT finished", flush=True)
# =================== YUM repos ==========================
# "$yum_sync" "${BASE_URL}/rpm/centos/@{os_ver}/@{arch}" 7 Adopitum x86_64,aarch64 "centos@{os_ver}-@{arch}" "$BASE_PATH/rpm"
sp.run([str(here/"yum-sync.py"),
BASE_URL+'/rpm/centos/@{os_ver}/@{arch}',
"--download-repodata",
'7',
'Adoptium',
'x86_64,aarch64',
"centos@{os_ver}-@{arch}",
f"{BASE_PATH}/rpm"
],
check=True)
# =================== YUM repos ========================== # =================== YUM repos ==========================
# "$yum_sync" "${BASE_URL}/rpm/rhel/@{os_ver}/@{arch}" 7 Adopitum x86_64,aarch64 "rhel@{os_ver}-@{arch}" "$BASE_PATH/rpm" # "$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"), sp.run([str(here/"yum-sync.py"),