From: Philip Prindeville <philipp@xxxxxxxxxxxxxxxxxxxxx> In preparation for supporting additional grouping criteria, i.e. not just country but possibly ASN or ISP name, etc. we're grouping the country databases under a 'cc/' subdirectory. This will avoid conflicts when other search criteria get added. Also, since we don't know what the name of the unpacked directory will look like (e.g. GeoLite2-Country-CSV.zip may unpack as GeoLite2-Country-CSV_20190326/ for instance), we look for the newest directory that matches that naming pattern (since the user might have opted to keep multiple directory versions around for rollback, etc). We've also modified the script to only unpack the English language name mapping, and the supporting files (copyright, readme, & license). The unpacked directory is not deleted after it gets post-processed but is left in place. The zip file, on the other hand, is deleted as before. Philip Prindeville (2): Put database into country subdirectory Keep unpacked directories, and detect latest for rebuilding geoip/xt_geoip_build | 28 +++++++++++++++++++++++++++- geoip/xt_geoip_dl | 10 +++++++--- geoip/xt_geoip_fetch | 2 +- 3 files changed, 35 insertions(+), 5 deletions(-) -- 2.17.2