1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2026-01-28 10:01:00 +03:00

CI: fix CI on MinGW builds

The XML test case tarball isn't actually compressed: the published URL
is a .tar and fetches of the .tar.gz redirect silently to the .tar,
which is then passed to gzip which refuses to decompress uncompressed
data.

Fetch the .tar as that is the documented URL, and remove the
decompression.
This commit is contained in:
Ross Burton
2022-12-06 17:05:14 +00:00
parent 76c6da4209
commit 3aaaf5cae6

View File

@@ -6,12 +6,12 @@ prefix=
if [ -n "$MINGW_PACKAGE_PREFIX" ]; then if [ -n "$MINGW_PACKAGE_PREFIX" ]; then
prefix="${MINGW_PACKAGE_PREFIX}-" prefix="${MINGW_PACKAGE_PREFIX}-"
fi fi
for module in libiconv python xz zlib "$@"; do for module in libiconv python "$@"; do
pacman --noconfirm -S --needed ${prefix}$module pacman --noconfirm -S --needed ${prefix}$module
done done
if [ ! -e libxml2-build/xmlconf ]; then if [ ! -e libxml2-build/xmlconf ]; then
mkdir -p libxml2-build mkdir -p libxml2-build
wget https://www.w3.org/XML/Test/xmlts20080827.tar.gz -O - | wget https://www.w3.org/XML/Test/xmlts20080827.tar -O - |
tar -x -z -C libxml2-build tar -x -C libxml2-build
fi fi