From e29bde22a0ebf05e64e2963c8c5eee46a12b8b67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luc=C3=ADa=20Andrea=20Illanes=20Albornoz?= Date: Tue, 26 Mar 2024 16:09:10 +0100 Subject: subr.pkg/pkg_configure_patch.subr: don't apply patches if "${PKG_BASE_DIR}/${PKG_SUBDIR}/srcprep.sh" exists. --- subr.pkg/pkg_configure_patch.subr | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subr.pkg/pkg_configure_patch.subr b/subr.pkg/pkg_configure_patch.subr index 572ea10a..62c4f382 100644 --- a/subr.pkg/pkg_configure_patch.subr +++ b/subr.pkg/pkg_configure_patch.subr @@ -12,6 +12,10 @@ pkg_configure_patch() { _pcp_restart_at="${3}" _pcp_type="${4:-patches}" \ _pcp_patch_cwd="" _pcp_strip_count=0; + if [ -x "${PKG_BASE_DIR}/${PKG_SUBDIR}/srcprep.sh" ]; then + return 0; + fi; + if [ "${PKG_FNAME:+1}" = 1 ]\ && [ "${PKG_URLS_GIT:+1}" = 1 ]; then -- cgit v1.2.3