From 0d185dca7d5287d6bcde73a07fe810bbe5ec36ed Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Thu, 4 Apr 2024 16:26:31 +0200 Subject: [PATCH] Do not patch a file removed just before --- build.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index 229dc5a1..01691e59 100755 --- a/build.sh +++ b/build.sh @@ -837,7 +837,12 @@ fi cd "../../.." rm -rf feeds/${OMR_KERNEL}/luci/modules/luci-mod-network -[ -d feeds/${OMR_KERNEL}/${OMR_DIST}/luci-mod-status ] && rm -rf feeds/${OMR_KERNEL}/luci/modules/luci-mod-status +if [ -d feeds/${OMR_KERNEL}/${OMR_DIST}/luci-mod-status ]; then + rm -rf feeds/${OMR_KERNEL}/luci/modules/luci-mod-status +elif ! patch -Rf -N -p1 -s --dry-run < ../../patches/luci-syslog.patch; then + patch -N -p1 -s < ../../patches/luci-syslog.patch +fi + [ -d feeds/${OMR_KERNEL}/${OMR_DIST}/luci-app-statistics ] && rm -rf feeds/${OMR_KERNEL}/luci/applications/luci-app-statistics #[ -d feeds/${OMR_DIST}/luci-proto-modemmanager ] && rm -rf feeds/${OMR_KERNEL}/luci/protocols/luci-proto-modemmanager #if [ -d ${OMR_FEED}/netifd ] && [ "${OMR_KERNEL}" != "5.4" ]; then @@ -855,9 +860,6 @@ if ! patch -Rf -N -p1 -s --dry-run < ../../patches/luci-occitan.patch; then patch -N -p1 -s < ../../patches/luci-occitan.patch #sh feeds/luci/build/i18n-add-language.sh oc fi -if ! patch -Rf -N -p1 -s --dry-run < ../../patches/luci-syslog.patch; then - patch -N -p1 -s < ../../patches/luci-syslog.patch -fi if [ "$OMR_KERNEL" = "5.4" ] && ! patch -Rf -N -p1 -s --dry-run < ../../patches/luci-base-add_array_sort_utilities.patch; then patch -N -p1 -s < ../../patches/luci-base-add_array_sort_utilities.patch fi