Skip to content

Commit

Permalink
Retire all el7 and debian buster repos
Browse files Browse the repository at this point in the history
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
  • Loading branch information
Harry-Chen committed Jul 2, 2024
1 parent ab495a3 commit 01f7693
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 22 deletions.
14 changes: 1 addition & 13 deletions adoptium.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,25 +118,13 @@ def delete_old_files(ver: int, alive_files: Set[str]):
],
check=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_sync" "${BASE_URL}/rpm/rhel/@{os_ver}/@{arch}" 7-9 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-9',
'9',
'Adoptium',
'x86_64,aarch64',
"rhel@{os_ver}-@{arch}",
Expand Down
2 changes: 1 addition & 1 deletion apt-sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

OS_TEMPLATE = {
'ubuntu-lts': ["focal", "jammy", "noble"],
'debian-current': ["buster", "bullseye", "bookworm"],
'debian-current': ["bullseye", "bookworm"],
'debian-latest2': ["bullseye", "bookworm"],
'debian-latest': ["bookworm"],
}
Expand Down
2 changes: 1 addition & 1 deletion chef.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ YUM_PATH="${BASE_PATH}/yum/stable"
APT_PATH="${BASE_PATH}/apt/stable"
export REPO_SIZE_FILE=/tmp/reposize.$RANDOM

"$yum_sync" "${UPSTREAM}/yum/stable/el/@{os_ver}/@{arch}" 7 chef x86_64 "stable-el@{os_ver}-@{arch}" "$YUM_PATH"
"$yum_sync" "${UPSTREAM}/yum/stable/el/@{os_ver}/@{arch}" 9 chef x86_64 "stable-el@{os_ver}-@{arch}" "$YUM_PATH"
echo "YUM finished"

"$apt_sync" --delete "${UPSTREAM}/apt/stable" @ubuntu-lts,@debian-current main amd64,i386,aarch64 "$APT_PATH"
Expand Down
3 changes: 2 additions & 1 deletion erlang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export REPO_SIZE_FILE=/tmp/reposize.$RANDOM

# generate codenames for repos
ubuntu_os=(jammy)
debian_os=(buster bullseye)
debian_os=(bullseye)
deb_suffixes=(
mongooseim-5
mongooseim-6
Expand All @@ -25,6 +25,7 @@ deb_suffixes=(
esl-erlang-26
elixir-1.14
elixir-1.15
elixir-1.16
)

function join_by { local IFS="$1"; shift; echo "$*"; }
Expand Down
2 changes: 1 addition & 1 deletion gitlab-ce.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ UBUNTU_PATH="${BASE_PATH}/ubuntu/"
DEBIAN_PATH="${BASE_PATH}/debian/"
export REPO_SIZE_FILE=/tmp/reposize.$RANDOM

"$yum_sync" "${UPSTREAM}/el/@{os_ver}/@{arch}/" 7,9 "gitlab" x86_64 "el@{os_ver}" "$YUM_PATH"
"$yum_sync" "${UPSTREAM}/el/@{os_ver}/@{arch}/" 9 "gitlab" x86_64 "el@{os_ver}" "$YUM_PATH"
echo "YUM finished"

"$apt_sync" --delete "${UPSTREAM}/ubuntu" @ubuntu-lts main amd64,i386 "$UBUNTU_PATH"
Expand Down
2 changes: 1 addition & 1 deletion gitlab-runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ UBUNTU_PATH="${BASE_PATH}/ubuntu/"
DEBIAN_PATH="${BASE_PATH}/debian/"
export REPO_SIZE_FILE=/tmp/reposize.$RANDOM

"$yum_sync" "${UPSTREAM}/el/@{os_ver}/@{arch}" 7,9 gitlab-runner x86_64,aarch64 "el@{os_ver}-@{arch}" "$YUM_PATH"
"$yum_sync" "${UPSTREAM}/el/@{os_ver}/@{arch}" 9 gitlab-runner x86_64,aarch64 "el@{os_ver}-@{arch}" "$YUM_PATH"
echo "YUM finished"

"$apt_sync" --delete "${UPSTREAM}/ubuntu" @ubuntu-lts main amd64,i386,arm64 "$UBUNTU_PATH"
Expand Down
2 changes: 1 addition & 1 deletion influxdata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ echo "Debian/Ubuntu finished"


# =================== YUM/DNF repos ==========================
"$yum_sync" "${BASE_URL}/rhel/@{os_ver}/@{arch}/stable/" 7 influxdata x86_64 "el@{os_ver}-@{arch}" "$YUM_PATH"
"$yum_sync" "${BASE_URL}/rhel/@{os_ver}/@{arch}/stable/" 9 influxdata x86_64 "el@{os_ver}-@{arch}" "$YUM_PATH"
echo "YUM finished"

"${_here}/helpers/size-sum.sh" $REPO_SIZE_FILE --rm
2 changes: 1 addition & 1 deletion llvm-apt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ BASE_URL=${TUNASYNC_UPSTREAM_URL:-"https://apt.llvm.org"}

export REPO_SIZE_FILE=/tmp/reposize.$RANDOM

for os in "jammy" "noble" "buster" "bullseye" "bookworm"; do
for os in "jammy" "noble" "bullseye" "bookworm"; do
prefix=llvm-toolchain-$os
"$apt_sync" --delete "$BASE_URL/$os" $prefix,$prefix-9,$prefix-10,$prefix-11,$prefix-12,$prefix-13,$prefix-14,$prefix-15,$prefix-16,$prefix-17,$prefix-18 main amd64,arm64 "$BASE_PATH/$os"
done
Expand Down
2 changes: 1 addition & 1 deletion mongodb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export REPO_SIZE_FILE=/tmp/reposize.$RANDOM

components=$(printf ",%s" "${MONGO_VERSIONS[@]}")
components=${components:1}
"$yum_sync" "${BASE_URL}/yum/redhat/@{os_ver}/mongodb-org/@{comp}/@{arch}/" 7,9 "$components" x86_64 "el@{os_ver}-@{comp}" "$YUM_PATH"
"$yum_sync" "${BASE_URL}/yum/redhat/@{os_ver}/mongodb-org/@{comp}/@{arch}/" 9 "$components" x86_64 "el@{os_ver}-@{comp}" "$YUM_PATH"
pushd "${YUM_PATH}"
for stable in el*-${STABLE_VERSION}; do
# e.g. "el8" -> "el8-4.2"
Expand Down
2 changes: 1 addition & 1 deletion virtualbox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export REPO_SIZE_FILE=/tmp/reposize.$RANDOM

# === download rhel packages ====

"$yum_sync" "${BASE_URL}/rpm/el/@{os_ver}/@{arch}" 7 VirtualBox x86_64 "el@{os_ver}" "$YUM_PATH"
"$yum_sync" "${BASE_URL}/rpm/el/@{os_ver}/@{arch}" 9 VirtualBox x86_64 "el@{os_ver}" "$YUM_PATH"
echo "YUM finished"

# === download deb packages ====
Expand Down

0 comments on commit 01f7693

Please sign in to comment.