1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:17:36 +00:00

Ports: Follow symlinks while discovering whether a port has patches

This enables us to use `./package.sh dev` with LLVM and GCC.
This commit is contained in:
Tim Schumacher 2022-09-16 20:01:30 +02:00 committed by Ali Mohammad Pur
parent 4d29489705
commit 72c059535e

View file

@ -727,7 +727,7 @@ do_dev() {
git config receive.denyCurrentBranch ignore git config receive.denyCurrentBranch ignore
# Import patches as commits, or ask the user to commit them # Import patches as commits, or ask the user to commit them
# if they're not git patches already. # if they're not git patches already.
if [ -d "${PORT_META_DIR}/patches" ] && [ -n "$(find "${PORT_META_DIR}/patches" -maxdepth 1 -name '*.patch' -print -quit)" ]; then if [ -d "${PORT_META_DIR}/patches" ] && [ -n "$(find -L "${PORT_META_DIR}/patches" -maxdepth 1 -name '*.patch' -print -quit)" ]; then
for patch in "${PORT_META_DIR}"/patches/*.patch; do for patch in "${PORT_META_DIR}"/patches/*.patch; do
if [ -f "$workdir/.$(basename $patch).applied" ]; then if [ -f "$workdir/.$(basename $patch).applied" ]; then
continue continue