https://github.com/python/cpython/commit/70ad1b30dfa9dad920029f8e0e63b3251c3195ca
commit: 70ad1b30dfa9dad920029f8e0e63b3251c3195ca
branch: main
author: Stan Ulbrych <[email protected]>
committer: encukou <[email protected]>
date: 2025-09-18T12:47:42+02:00
summary:

gh-138998: `expat/refresh.sh`: Fail if Step 3 is not completed (GH-139049)

files:
M Modules/expat/refresh.sh

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:

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to