build: Update getswdb version check to 2.2
authorAndre Heinecke <aheinecke@intevation.de>
Thu, 12 Apr 2018 06:56:00 +0000 (08:56 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Thu, 12 Apr 2018 06:56:00 +0000 (08:56 +0200)
* build-aux/getswdb.sh: Check for gnupg22_ver gnupg21_ver no
longer exists.

build-aux/getswdb.sh

index 83ecdb2..cd419f2 100755 (executable)
@@ -175,9 +175,9 @@ fi
 # to help detect rollback attacks.
 #
 if [ $skip_selfcheck = no ]; then
 # to help detect rollback attacks.
 #
 if [ $skip_selfcheck = no ]; then
-  gnupg_ver=$(awk '$1=="gnupg21_ver" {print $2;exit}' swdb.lst)
+  gnupg_ver=$(awk '$1=="gnupg22_ver" {print $2;exit}' swdb.lst)
   if [ -z "$gnupg_ver" ]; then
   if [ -z "$gnupg_ver" ]; then
-      echo "GnuPG 2.1 version missing in swdb.lst!" >&2
+      echo "GnuPG 2.2 version missing in swdb.lst!" >&2
       exit 1
   fi
   gnupg_ver_num=$(echo "$gnupg_ver" | cvtver)
       exit 1
   fi
   gnupg_ver_num=$(echo "$gnupg_ver" | cvtver)