Skip to content

Commit 70ad1b3

Browse files
gh-138998: expat/refresh.sh: Fail if Step 3 is not completed (GH-139049)
1 parent 8247e1b commit 70ad1b3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Modules/expat/refresh.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ rm libexpat.tar.gz
5454
# Step 3: Add the namespacing include to expat_external.h
5555
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
5656

57+
if ! grep -q '#include "pyexpatns\.h"' expat_external.h; then
58+
echo "
59+
Error: namespacing include not found in expat_external.h;
60+
This may be due to source changes and will require updating this script" >&2
61+
exit 1
62+
fi
63+
5764
echo "
5865
Updated! next steps:
5966
- Verify all is okay:

0 commit comments

Comments
 (0)