Skip to content

Commit

Permalink
pkgbuild: restrict prepare() patch machinery to ceph-*
Browse files Browse the repository at this point in the history
So that we can introduce non ceph patches in future commits
  • Loading branch information
bazaah committed Mar 18, 2024
1 parent 4630b57 commit 54d7874
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 54d7874

Please sign in to comment.