]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
sync-push: Print releases in order 1772/head
authorDavid Galloway <dgallowa@redhat.com>
Thu, 18 Mar 2021 16:06:23 +0000 (12:06 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Thu, 18 Mar 2021 16:06:23 +0000 (12:06 -0400)
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 <dgallowa@redhat.com>
scripts/sync-push

index c18e2d73962c005fc6c57704a15aed234747a3d2..859ab39d3e37cba03aab87782c288cc0f6be1054 100644 (file)
@@ -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.