From 3b5557e33af55db02dd40c147e39a92816c8f340 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Wed, 17 Sep 2025 16:11:24 +0100 Subject: [PATCH] Commit --- Modules/expat/refresh.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Modules/expat/refresh.sh b/Modules/expat/refresh.sh index cc7ae1686de052..0ea0e85d046988 100755 --- a/Modules/expat/refresh.sh +++ b/Modules/expat/refresh.sh @@ -54,6 +54,13 @@ rm libexpat.tar.gz # Step 3: Add the namespacing include to expat_external.h sed -i 's/# define Expat_External_INCLUDED 1/&\n\/* Namespace external symbols to allow multiple libexpat version to\n co-exist. \*\/\n#include "pyexpatns.h"/' expat_external.h +if ! grep -q '#include "pyexpatns\.h"' expat_external.h; then + echo " +Error: namespacing include not found in expat_external.h; +This may be due to source changes and will require updating this script" >&2 + exit 1 +fi + echo " Updated! next steps: - Verify all is okay: