[arch-commits] Commit in geoip-database/trunk (PKGBUILD check-last-modified.sh)

Evangelos Foutras foutrelis at archlinux.org
Sun Feb 15 11:40:57 UTC 2015


    Date: Sunday, February 15, 2015 @ 12:40:57
  Author: foutrelis
Revision: 231449

upgpkg: geoip-database 20150203-1

New upstream release.

Modified:
  geoip-database/trunk/PKGBUILD
  geoip-database/trunk/check-last-modified.sh

------------------------+
 PKGBUILD               |    6 +++---
 check-last-modified.sh |   13 +++++++++++++
 2 files changed, 16 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-02-15 10:31:22 UTC (rev 231448)
+++ PKGBUILD	2015-02-15 11:40:57 UTC (rev 231449)
@@ -2,7 +2,7 @@
 # Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
 
 pkgname=geoip-database
-pkgver=20150106
+pkgver=20150203
 pkgrel=1
 pkgdesc="GeoLite country geolocation database compiled by MaxMind"
 arch=('any')
@@ -13,8 +13,8 @@
         http://geolite.maxmind.com/download/geoip/database/LICENSE.txt)
 noextract=(GeoIP-$pkgver.dat.gz
            GeoIPv6-$pkgver.dat.gz)
-sha256sums=('7fd7e4829aaaae2677a7975eeecd170134195e5b7e6fc7d30bf3caf34db41bcd'
-            '126fd2953eb193e60538e30b4465610530383f7a782745cacdca5ba6825f471c'
+sha256sums=('5c899f6237d8694833c43e0f4d3772c648663b77f662dd320f0ecf65e0954eb9'
+            'ddf37b71e903a4ee4b2b9adec1fd12cb7be1c7cd0ce0cef324db6b95bd3567ae'
             '83a4cb82ef8953c0107886b49bc39fcf77590a222d30e778d48f5d92f5b5e383')
 
 prepare() {

Modified: check-last-modified.sh
===================================================================
--- check-last-modified.sh	2015-02-15 10:31:22 UTC (rev 231448)
+++ check-last-modified.sh	2015-02-15 11:40:57 UTC (rev 231449)
@@ -1,5 +1,13 @@
 #!/bin/bash -e
 
+# Unicode characters taken from pactree.c
+UNICODE_IS_FUN="\u2514\u2500"
+
+verbose=0
+if [[ $1 == -v ]]; then
+	verbose=1
+fi
+
 URLS=(https://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
       https://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz)
 
@@ -6,4 +14,9 @@
 for url in ${URLS[@]}; do
 	last_mod=$(curl -sI $url | grep ^Last-Modified: | cut -d' ' -f2- | tr -d '\r')
 	echo "$last_mod (${url##*/})"
+
+	if ((verbose)); then
+		build_id=$(curl -s $url | gzip -cd | grep -ao '[0-9]* Build [0-9]*')
+		echo -e "${UNICODE_IS_FUN}$build_id"
+	fi
 done



More information about the arch-commits mailing list