Date: Thursday, May 7, 2020 @ 07:32:56
  Author: foutrelis
Revision: 382641

Remove usage of error() makepkg subroutine

Modified:
  geoip-database/trunk/PKGBUILD

----------+
 PKGBUILD |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2020-05-07 07:28:28 UTC (rev 382640)
+++ PKGBUILD    2020-05-07 07:32:56 UTC (rev 382641)
@@ -30,32 +30,32 @@
   cd "$srcdir"
 
   if [[ $(geoiplookup -f GeoIP.dat 8.8.8.8) != *'US, United States' ]]; then
-    error 'Unable to resolve IPv4 address to country.'
+    echo >&2 'Unable to resolve IPv4 address to country.'
     return 1
   fi
 
   if [[ $(geoiplookup6 -f GeoIPv6.dat 2001:4860:4860::8888) != *'US, United 
States' ]]; then
-    error 'Unable to resolve IPv6 address to country.'
+    echo >&2 'Unable to resolve IPv6 address to country.'
     return 1
   fi
 
   if [[ $(geoiplookup -f GeoIPCity.dat 8.8.8.8) != *'US, 00, N/A, N/A'* ]]; 
then
-    error 'Unable to resolve IPv4 address to city.'
+    echo >&2 'Unable to resolve IPv4 address to city.'
     return 1
   fi
 
   if [[ $(geoiplookup6 -f GeoIPCityv6.dat 2001:4860:4860::8888) != *'US, 00, 
N/A, N/A'* ]]; then
-    error 'Unable to resolve IPv6 address to city.'
+    echo >&2 'Unable to resolve IPv6 address to city.'
     return 1
   fi
 
   if [[ $(geoiplookup -f GeoIPASNum.dat 8.8.8.8) != *'AS15169 GOOGLE' ]]; then
-    error 'Unable to resolve IPv4 address to ASN.'
+    echo >&2 'Unable to resolve IPv4 address to ASN.'
     return 1
   fi
 
   if [[ $(geoiplookup6 -f GeoIPASNumv6.dat 2001:4860:4860::8888) != *'AS15169 
GOOGLE' ]]; then
-    error 'Unable to resolve IPv6 address to ASN.'
+    echo >&2 'Unable to resolve IPv6 address to ASN.'
     return 1
   fi
 }

Reply via email to