ports: Apply only patches ending in .patch

This commit is contained in:
Bananymous 2025-07-31 22:38:37 +03:00
parent 9b18bda9c8
commit 9f0c2fb6e2
1 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ if [ "$VERSION" = "git" ]; then
pushd "$build_dir" >/dev/null pushd "$build_dir" >/dev/null
git checkout "$COMMIT" || exit 1 git checkout "$COMMIT" || exit 1
if [ -d ../patches ]; then if [ -d ../patches ]; then
for patch in ../patches/*; do for patch in ../patches/*.patch ; do
git apply "$patch" || exit 1 git apply "$patch" || exit 1
done done
fi fi
@ -194,7 +194,7 @@ else
mv "$TAR_CONTENT" "$build_dir" || exit 1 mv "$TAR_CONTENT" "$build_dir" || exit 1
if [ -d patches ]; then if [ -d patches ]; then
for patch in ./patches/*; do for patch in ./patches/*.patch ; do
patch -ruN -p1 -d "$build_dir" < "$patch" || exit 1 patch -ruN -p1 -d "$build_dir" < "$patch" || exit 1
done done
fi fi