]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-build-pull-requests: Support rpm systems
authorZack Cerza <zack@cerza.org>
Thu, 11 Sep 2025 20:03:19 +0000 (14:03 -0600)
committerZack Cerza <zack@cerza.org>
Thu, 11 Sep 2025 21:27:33 +0000 (15:27 -0600)
Signed-off-by: Zack Cerza <zack@cerza.org>
ceph-build-pull-requests/build/build

index b2a3e4d0f78175b2ffe4209483e2d42fb63c475d..246ecfd22c6cc2aa6b576a80576cadce67022aab 100644 (file)
@@ -10,7 +10,12 @@ pkgs=( "ansible" "ansible-core" "git+https://opendev.org/jjb/jenkins-job-builder
 VENV=./.venv/bin
 uv pip install "${pkgs[@]}"
 
-dpkg -l shellcheck >/dev/null 2>&1 || sudo apt install -y shellcheck
+command -v dpkg >/dev/null && (
+    dpkg -l shellcheck >/dev/null 2>&1 || sudo apt install -y shellcheck
+)
+command -v dnf >/dev/null && (
+    rpm -q shellcheck >/dev/null 2>&1 || sudo dnf install -y shellcheck
+)
 rm -rf xml
 # Test every definition if available in the current repository and update the jobs
 # if they do define one (they should always define their definitions)