When downloading translations for packaging, bypass certificate check.

It will fail on the slaves and we're resolving to internal addressing anyway.
This commit is contained in:
Nicholas Hastings 2015-09-12 14:16:38 -04:00
parent cfa09f22c1
commit 8ce41407dd

View File

@ -33,7 +33,8 @@ require 'helpers.pm';
chdir(Build::PathFormat('../../../OUTPUT/package')); chdir(Build::PathFormat('../../../OUTPUT/package'));
print "Downloading languages.cfg...\n"; 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') open(my $fh, '<', 'addons/sourcemod/configs/languages.cfg')
or die "Could not open languages.cfg' $!"; or die "Could not open languages.cfg' $!";
@ -44,7 +45,8 @@ while (my $ln = <$fh>) {
my $id = $2; my $id = $2;
print "Downloading language pack $abbr.zip...\n"; 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("unzip -qo $abbr.zip -d addons/sourcemod/translations/");
system("rm $abbr.zip"); system("rm $abbr.zip");
} }