[postgis-tickets] [SCM] PostGIS branch master updated. 3.3.0rc2-593-g7505ad7a6

git at osgeo.org git at osgeo.org
Fri Feb 10 01:15:22 PST 2023


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, master has been updated
       via  7505ad7a6de9fd961ea0a3ead1e4861a327ce4c2 (commit)
      from  4bcdc968534100cb8b316c166f2513ffa09a03e9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7505ad7a6de9fd961ea0a3ead1e4861a327ce4c2
Author: Sandro Santilli <strk at kbt.io>
Date:   Fri Feb 10 10:15:10 2023 +0100

    Drop dependency on cpan module File::Which

diff --git a/regress/run_test.pl b/regress/run_test.pl
index 12b3e889c..d769fefee 100755
--- a/regress/run_test.pl
+++ b/regress/run_test.pl
@@ -16,7 +16,6 @@
 use File::Basename;
 use File::Temp 'tempdir';
 use Time::HiRes qw(time);
-use File::Which;
 use File::Copy;
 use File::Path;
 use Cwd 'abs_path';
@@ -118,17 +117,20 @@ if ( @ARGV < 1 )
 sub findOrDie
 {
     my $exec = shift;
-    my $path = which $exec;
 	printf "Checking for %s ... ", $exec;
-    if ( defined($path) ) {
-		print "found ($path)\n";
+    #my $path = which $exec;
+    foreach my $d ( split /:/, $ENV{PATH} )
+    {
+        my $path = $d . '/' . $exec;
+        if ( -x $path ) {
+		    print "found ($path)\n";
+            return $path;
+        }
     }
-    else {
-		print "failed\n";
-		print STDERR "Unable to find $exec executable.\n";
-		print STDERR "PATH is " . $ENV{"PATH"} . "\n";
-		die "HINT: use POSTGIS_TOP_BUILD_DIR env or --build-dir switch the specify top build dir.\n";
-    };
+    print "failed\n";
+    print STDERR "Unable to find $exec executable.\n";
+    print STDERR "PATH is " . $ENV{"PATH"} . "\n";
+    die "HINT: use POSTGIS_TOP_BUILD_DIR env or --build-dir switch the specify top build dir.\n";
 }
 
 # Prepend scripts' build dirs to path

-----------------------------------------------------------------------

Summary of changes:
 regress/run_test.pl | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list