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

glen glen at pld-linux.org
Sun Sep 30 21:13:01 CEST 2012


commit e5288fe19ed0327d61b9a4f7eb118052f9f99f91
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Sep 30 22:12:58 2012 +0300

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

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

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/GeoIP-db-Country.git/commitdiff/e5288fe19ed0327d61b9a4f7eb118052f9f99f91



More information about the pld-cvs-commit mailing list