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:
parent
f05cc72e98
commit
7c8b888054
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user