[#368] Added Ubuntu release logic to update-apt-repo step too.

This commit is contained in:
Fabio Manganiello 2024-05-26 22:56:23 +02:00
parent 16f7b7e12a
commit 4cd0761e78
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -20,7 +20,7 @@ done
echo "-- Updating Packages files" echo "-- Updating Packages files"
echo "stable\noldstable" | while read distro; do echo "stable\noldstable\nubuntu" | while read distro; do
echo "main\ndev" | while read branch; do echo "main\ndev" | while read branch; do
branch_dir="$TMP_APT_ROOT/pool/$distro/$branch" branch_dir="$TMP_APT_ROOT/pool/$distro/$branch"
echo "Checking pool folder: $branch_dir" echo "Checking pool folder: $branch_dir"
@ -57,7 +57,7 @@ add_hashes() {
done done
} }
echo "stable\noldstable" | while read distro; do echo "stable\noldstable\nubuntu" | while read distro; do
dist_dir="$TMP_APT_ROOT/dists/$distro" dist_dir="$TMP_APT_ROOT/dists/$distro"
components=$(find "$dist_dir" -name Packages | awk -F '/' '{print $(NF-2)}' | uniq | tr '\n' ' ') components=$(find "$dist_dir" -name Packages | awk -F '/' '{print $(NF-2)}' | uniq | tr '\n' ' ')
release_file="$dist_dir/Release" release_file="$dist_dir/Release"
@ -81,7 +81,7 @@ done
echo "-- Generating list files" echo "-- Generating list files"
mkdir -p "$TMP_APT_ROOT/lists" mkdir -p "$TMP_APT_ROOT/lists"
for distro in stable oldstable; do for distro in stable oldstable ubuntu; do
for branch in main dev; do for branch in main dev; do
echo "deb https://apt.platypush.tech/ $distro $branch" > "$TMP_APT_ROOT/lists/platypush-$distro-$branch.list" echo "deb https://apt.platypush.tech/ $distro $branch" > "$TMP_APT_ROOT/lists/platypush-$distro-$branch.list"
done done