From d192527707d3ba4bf790a366a796ae03cbed5174 Mon Sep 17 00:00:00 2001 From: peace-maker Date: Wed, 30 Jun 2021 13:32:40 +0200 Subject: [PATCH] Fix unpacking of GeoLite2 database (#1516) Apparently you can't unpack and uncompress in one go in Windows and tar -C doesn't affect the input file. --- tools/buildbot/package.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/buildbot/package.pl b/tools/buildbot/package.pl index f1f99208..09188bda 100755 --- a/tools/buildbot/package.pl +++ b/tools/buildbot/package.pl @@ -54,12 +54,13 @@ while (my $ln = <$fh>) { } close($fh); -unless (-e '../GeoLite2-City_20191217.tar.gz') +unless (-e '../GeoLite2-City_20191217.tar') { print "Downloading GeoLite2-City.mmdb...\n"; # 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 ../GeoLite2-City_20191217.tar.gz https://sm.alliedmods.net/GeoLite2-City_20191217.tar.gz'); - system('tar -C ../ -xzf GeoLite2-City_20191217.tar.gz'); + system('gunzip ../GeoLite2-City_20191217.tar.gz'); + system('tar -C ../ -xf ../GeoLite2-City_20191217.tar'); copy('../GeoLite2-City_20191217/GeoLite2-City.mmdb', 'addons/sourcemod/configs/geoip/GeoLite2-City.mmdb'); } else