Skip to content

Commit

Permalink
In packaging, use API for gunzip instead of executable (bug 6415).
Browse files Browse the repository at this point in the history
  • Loading branch information
psychonic committed Sep 18, 2015
1 parent c982cc9 commit c085444
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tools/buildbot/package.pl
Expand Up @@ -5,6 +5,7 @@
use File::Basename;
use File::stat;
use Net::FTP;
use IO::Uncompress::Gunzip qw(gunzip $GunzipError) ;
use Time::localtime;

my ($ftp_file, $ftp_host, $ftp_user, $ftp_pass, $ftp_path, $tag);
Expand Down Expand Up @@ -78,8 +79,12 @@
print "Reusing existing GeoIP.dat\n";
}

system('gunzip -c ../GeoIP.dat.gz > addons/sourcemod/configs/geoip/GeoIP.dat');

my $geoIPfile = 'addons/sourcemod/configs/geoip/GeoIP.dat';
if (-e $geoIPfile) {
unlink($geoIPfile);
}
gunzip '../GeoIP.dat.gz' => $geoIPfile
or die "gunzip failed: $GunzipError\n";

my ($version);

Expand Down

0 comments on commit c085444

Please sign in to comment.