]> git.pld-linux.org Git - packages/xtables-geoip.git/commitdiff
- use GMT timezone, not to fail on builders having different timezone
authorElan Ruusamäe <glen@delfi.ee>
Sun, 30 Sep 2012 19:10:53 +0000 (22:10 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 30 Sep 2012 19:10:53 +0000 (22:10 +0300)
xtables-geoip.spec

index 04b03296ff518a27eba74ea4ef5bef1a036baa93..b1316f7a107a9688a93ed35b5fc62f365cf5cd5c 100644 (file)
@@ -46,8 +46,8 @@ xtables-addons.
 gunzip -c %{SOURCE1} > GeoIPv6.csv
 touch -r %{SOURCE1} GeoIPv6.csv
 
-ver4=$(stat -c '%y' GeoIPCountryWhois.csv | awk '{print $1}' | tr -d -)
-ver6=$(stat -c '%y' GeoIPv6.csv | awk '{print $1}' | tr -d -)
+ver4=$(TZ=GMT stat -c '%y' GeoIPCountryWhois.csv | awk '{print $1}' | tr -d -)
+ver6=$(TZ=GMT stat -c '%y' GeoIPv6.csv | awk '{print $1}' | tr -d -)
 if [ "$ver4" -gt "$ver6" ]; then
        ver=$ver4
 else
This page took 0.303783 seconds and 4 git commands to generate.