From 30a4edaa83c759e30a804876ffc75aa5ab9969b4 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Thu, 18 Mar 2021 12:06:23 -0400 Subject: [PATCH] sync-push: Print releases in order Previous directory listing behavior: ``` octopus-15.2.10 octopus-15.2.4 octopus-15.2.5 octopus-15.2.6 octopus-15.2.7 octopus-15.2.8 octopus-15.2.9 ``` Desired (and current with this PR) listing behavior: ``` octopus-15.2.4 octopus-15.2.5 octopus-15.2.6 octopus-15.2.7 octopus-15.2.8 octopus-15.2.9 octopus-15.2.10 ``` This wasn't discovered until now because the `$newgen` stuff I do in this script only applies to Octopus for now. Octopus only had single digit minor release versions (15.x.{1..9}) until 15.2.10. The symlink didn't get updated to download.ceph.com/rpm-octopus still pointed to download.ceph.com/rpm-15.2.9 since it was last in the directory listing. Signed-off-by: David Galloway --- scripts/sync-push | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/sync-push b/scripts/sync-push index c18e2d73..859ab39d 100644 --- a/scripts/sync-push +++ b/scripts/sync-push @@ -12,7 +12,7 @@ releases=${*:-"nautilus octopus pacific"} ceph_sync() { release=$1 - for path in /opt/repos/ceph/$release*; do + for path in $(ls -d /opt/repos/ceph/* | grep $release | sort -t. -k3 -n); do # We started using the new /opt/repos/ceph/$release-X.X.X format with Octopus. # Older releases have all packages in one big $release dir without a trailing "-X.X.X" so we need to adjust paths accordingly. -- 2.39.5