From: David Galloway Date: Fri, 3 Oct 2025 16:36:46 +0000 (-0400) Subject: sync-pull: Check for all distro/ver subdirs and create if necessary X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a0ee0c94f08e7063626fde8cfd4dc3a46ef4784b;p=ceph-build.git sync-pull: Check for all distro/ver subdirs and create if necessary The previous logic was fine for the first time a release was sync-pulled as long as that new release doesn't have a new RPM distro/distrover. e.g., New tentacle release, old logic saw there was no tentacle-21.0.0 dir and created debian/jessie and centos/9 subdirs. But we later needed to add rocky/10 and create a rocky/10 subdir. But the logic saw tentacle-21.0.0 so didn't create it. Signed-off-by: David Galloway --- diff --git a/scripts/sync-pull b/scripts/sync-pull index 2a0d82209..b928f086d 100755 --- a/scripts/sync-pull +++ b/scripts/sync-pull @@ -53,15 +53,10 @@ done relver=$release -if [[ "$project" == "ceph" ]] ; then - # Get numerical version - version=$(echo $chacra_repo_status | jq -r .extra.version) - relver=$release-$version - [[ -d /opt/repos/$project/$relver ]] || mkdir -p /opt/repos/$project/$relver/{debian/jessie,centos/9,rocky/10} -else - # not ceph (i.e. ceph-iscsi) - [[ -d /opt/repos/$project/$relver ]] || mkdir -p /opt/repos/$project/$relver/centos/9 -fi +# Get numerical version +version=$(echo $chacra_repo_status | jq -r .extra.version) +relver=$release-$version +mkdir -p /opt/repos/$project/$relver/{debian/jessie,centos/9,rocky/10} if [[ "$project" == "ceph" ]] ; then # Replace $highest_combo with your own DISTRO/VERSION if you don't want to sync from the repo with the most packages.