In package script, set binmode for geoip out file (bug 6415).

This fixes newline conversion happening on Windows.
This commit is contained in:
Nicholas Hastings 2015-09-18 10:08:39 -04:00
parent c085444a03
commit e748d49343

View File

@ -83,8 +83,13 @@ my $geoIPfile = 'addons/sourcemod/configs/geoip/GeoIP.dat';
if (-e $geoIPfile) {
unlink($geoIPfile);
}
gunzip '../GeoIP.dat.gz' => $geoIPfile
open(my $fh, ">", $geoIPfile)
or die "cannot open $geoIPfile for writing: $!";
binmode($fh);
gunzip '../GeoIP.dat.gz' => $fh
or die "gunzip failed: $GunzipError\n";
close($fh);
my ($version);