From 54d78741e5f9eb9c76e4009353a43d56e9b0a013 Mon Sep 17 00:00:00 2001 From: Bazaah Date: Mon, 18 Mar 2024 14:30:49 +0000 Subject: [PATCH] pkgbuild: restrict prepare() patch machinery to ceph-* So that we can introduce non ceph patches in future commits --- PKGBUILD | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PKGBUILD b/PKGBUILD index 0289d52..5989cba 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -153,7 +153,8 @@ prepare() { # apply patches from the source array local filename for filename in "${source[@]%%::*}"; do - if [[ "${filename}" =~ \.patch$ ]]; then + if [[ "${filename}" =~ \.patch$ ]] \ + && [[ "${filename}" =~ ^ceph-.* ]]; then echo "Applying patch ${filename##*/}" patch -p1 -N -i "${srcdir}/${filename##*/}" fi