travis: disable mxe pkg key

The mxe package server key has been removed from the keyservers, allow
apt-key to fail and add `--allow-unauthenticated` to the apt-get
options.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
Rafael Kitover 2019-03-15 04:44:45 -07:00
parent a57e51f699
commit 6ca59412a8
No known key found for this signature in database
GPG Key ID: 08AB596679D86240
1 changed files with 3 additions and 3 deletions

View File

@ -339,7 +339,7 @@ EOF
if [ -z "$(apt-cache search '^mxe-source$')" ]; then if [ -z "$(apt-cache search '^mxe-source$')" ]; then
if [ ! -f "$mxe_apt_sources" ]; then if [ ! -f "$mxe_apt_sources" ]; then
echo "deb https://pkg.mxe.cc/repos/apt $debian_rel main" | sudo -- sh -c "cat > $mxe_apt_sources" echo "deb https://pkg.mxe.cc/repos/apt $debian_rel main" | sudo -- sh -c "cat > $mxe_apt_sources"
check sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C6BF758A33A3A276 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C6BF758A33A3A276 || :
else else
error "$mxe_apt_sources exists but mxe packages are not found in apt, either delete it or fix it" error "$mxe_apt_sources exists but mxe packages are not found in apt, either delete it or fix it"
fi fi
@ -349,9 +349,9 @@ EOF
for dep in gcc zlib ffmpeg gettext sdl2 sfml openal wxwidgets; do for dep in gcc zlib ffmpeg gettext sdl2 sfml openal wxwidgets; do
set -- "$@" "mxe-${target}-$dep" set -- "$@" "mxe-${target}-$dep"
done done
check sudo apt-get -qq -y update check sudo apt-get --allow-unauthenticated -qq -y update
# native wx-common needed for wxrc executable # native wx-common needed for wxrc executable
check sudo apt-get -qy install build-essential cmake ccache wx-common "$@" check sudo apt-get --allow-unauthenticated -qy install build-essential cmake ccache wx-common "$@"
fi fi
build_instructions build_instructions