[packages/GeoIP-db-City] - use GMT timezone, not to fail on builders having different timezone

glen glen at pld-linux.org
Sun Sep 30 21:12:09 CEST 2012


commit 4b1137ff198dfd6125320deaf8850ed3a5e3f44f
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Sep 30 22:11:55 2012 +0300

    - use GMT timezone, not to fail on builders having different timezone

 GeoIP-db-City.spec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/GeoIP-db-City.spec b/GeoIP-db-City.spec
index 00827a7..8ed8845 100644
--- a/GeoIP-db-City.spec
+++ b/GeoIP-db-City.spec
@@ -37,7 +37,7 @@ cp -p %{SOURCE1} .
 
 gunzip GeoLiteCity.dat.gz
 
-ver=$(stat -c '%y' GeoLiteCity.dat | awk '{print $1}' | tr - .)
+ver=$(TZ=GMT stat -c '%y' GeoLiteCity.dat | awk '{print $1}' | tr - .)
 if [ "$ver" != %{version} ]; then
 	exit 1
 fi
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/GeoIP-db-City.git/commitdiff/4b1137ff198dfd6125320deaf8850ed3a5e3f44f



More information about the pld-cvs-commit mailing list