From 8ce41407dd369ebbed31e273654f318275367ce3 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Sat, 12 Sep 2015 14:16:38 -0400 Subject: [PATCH] When downloading translations for packaging, bypass certificate check. It will fail on the slaves and we're resolving to internal addressing anyway. --- tools/buildbot/package.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/buildbot/package.pl b/tools/buildbot/package.pl index 9e48dac6..aefe4289 100755 --- a/tools/buildbot/package.pl +++ b/tools/buildbot/package.pl @@ -33,7 +33,8 @@ require 'helpers.pm'; chdir(Build::PathFormat('../../../OUTPUT/package')); print "Downloading languages.cfg...\n"; -system('wget -q -O addons/sourcemod/configs/languages.cfg "https://sm.alliedmods.net/translator/index.php?go=translate&op=export_langs"'); +# Don't check certificate. It will fail on the slaves and we're resolving to internal addressing anyway +system('wget --no-check-certificate -q -O addons/sourcemod/configs/languages.cfg "https://sm.alliedmods.net/translator/index.php?go=translate&op=export_langs"'); open(my $fh, '<', 'addons/sourcemod/configs/languages.cfg') or die "Could not open languages.cfg' $!"; @@ -44,7 +45,8 @@ while (my $ln = <$fh>) { my $id = $2; print "Downloading language pack $abbr.zip...\n"; - system("wget -q -O $abbr.zip \"https://sm.alliedmods.net/translator/index.php?go=translate&op=export&lang_id=$id\""); + # Don't check certificate. It will fail on the slaves and we're resolving to internal addressing anyway + system("wget --no-check-certificate -q -O $abbr.zip \"https://sm.alliedmods.net/translator/index.php?go=translate&op=export&lang_id=$id\""); system("unzip -qo $abbr.zip -d addons/sourcemod/translations/"); system("rm $abbr.zip"); }