From fa3c804b715bb774b00d2fabc5a713dd29d8d597 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 26 May 2024 22:56:23 +0200 Subject: [PATCH] [#368] Added Ubuntu release logic to `update-apt-repo` step too. --- .drone/update-apt-repo.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone/update-apt-repo.sh b/.drone/update-apt-repo.sh index dd757d24fd..7616294bb4 100755 --- a/.drone/update-apt-repo.sh +++ b/.drone/update-apt-repo.sh @@ -20,7 +20,7 @@ done 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 branch_dir="$TMP_APT_ROOT/pool/$distro/$branch" echo "Checking pool folder: $branch_dir" @@ -57,7 +57,7 @@ add_hashes() { done } -echo "stable\noldstable" | while read distro; do +echo "stable\noldstable\nubuntu" | while read distro; do dist_dir="$TMP_APT_ROOT/dists/$distro" components=$(find "$dist_dir" -name Packages | awk -F '/' '{print $(NF-2)}' | uniq | tr '\n' ' ') release_file="$dist_dir/Release" @@ -81,7 +81,7 @@ done echo "-- Generating list files" 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 echo "deb https://apt.platypush.tech/ $distro $branch" > "$TMP_APT_ROOT/lists/platypush-$distro-$branch.list" done