Make wheel indices valid HTML 5

Pip 22.0 switched[*] its HTML parser library for one which demands
strict adherence to HTML 5, and so cannot work if told to include
our wheel indices because they lack a doctype declaration on the
first line. Add one.

[*] https://github.com/pypa/pip/issues/10825

Change-Id: Ia863e313e656e67191e1ca3aea968a7f3e4059a6
This commit is contained in:
Jeremy Stanley 2022-01-30 16:37:01 +00:00
parent f05cc72e98
commit 7c8b888054
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ trap "rm -f -- '$TMP_INDEX_FILE'" EXIT
INDEX_FILE=${MIRROR_ROOT}/index.html
# Start building our file
echo -e "<html>\n <head>\n <title>Wheel Index</title>\n </head>" > $TMP_INDEX_FILE
echo -e "<!DOCTYPE html>\n<html>\n <head>\n <title>Wheel Index</title>\n </head>" > $TMP_INDEX_FILE
echo -e " <body>\n <ul>" >> $TMP_INDEX_FILE
# Get a list of files