[packages/xtables-geoip] - use GMT timezone, not to fail on builders having different timezone
glen
glen at pld-linux.org
Sun Sep 30 21:10:57 CEST 2012
commit 1ea932eb215580ae8eb1b11374069b368995a938
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Sep 30 22:10:53 2012 +0300
- use GMT timezone, not to fail on builders having different timezone
xtables-geoip.spec | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/xtables-geoip.spec b/xtables-geoip.spec
index 04b0329..b1316f7 100644
--- a/xtables-geoip.spec
+++ b/xtables-geoip.spec
@@ -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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/xtables-geoip.git/commitdiff/1ea932eb215580ae8eb1b11374069b368995a938
More information about the pld-cvs-commit
mailing list