commit c385bd14eca3c825fd0a62306ea4210916a97e87
Author: Elan Ruusamäe <[email protected]>
Date:   Fri Sep 28 11:23:25 2012 +0300

    - xtables-geoip has two files on what version is decided

 update-geoip.sh | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/update-geoip.sh b/update-geoip.sh
index 65159ab..3e25ace 100755
--- a/update-geoip.sh
+++ b/update-geoip.sh
@@ -9,8 +9,14 @@ for pkg in ${*:-$pkgs}; do
        specfile=*.spec
        ../md5 -p1 $specfile
        version=$(awk '/^Version:[      ]+/{print $NF}' $specfile)
-       if [ $pkg = xtables-geoip ]; then
-               dt=$(stat -c %y *.zip | awk '{print $1}' | tr -d -)
+       if [ $pkg = "xtables-geoip" ]; then
+               dt4=$(stat -c '%y' *.zip | awk '{print $1}' | tr -d -)
+               dt6=$(stat -c '%y' *.gz | awk '{print $1}' | tr -d -)
+               if [ "$dt4" -gt "$dt6" ]; then
+                       dt=$dt4
+               else
+                       dt=$dt6
+               fi
        else
                dt=$(stat -c %y *.gz | awk '{print $1}' | tr - .)
        fi
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/c385bd14eca3c825fd0a62306ea4210916a97e87

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to