[postgis-tickets] [SCM] PostGIS branch master updated. 3.3.0rc1-9-g5e87b7215

git at osgeo.org git at osgeo.org
Sat Aug 13 00:27:24 PDT 2022


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  5e87b721530008fce0e498666732da962184b246 (commit)
      from  d5b74033e2353fd5edf901f4fc5029a393429ef6 (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 5e87b721530008fce0e498666732da962184b246
Author: Sandro Santilli <strk at kbt.io>
Date:   Sat Aug 13 08:14:35 2022 +0200

    run_test: stop assuming default version has split raster
    
    Fixes --extension --upgrade tests where --upgrade-path
    is NOT given and the default version in .control file
    is older than 3.0 (pre-split times)

diff --git a/regress/run_test.pl b/regress/run_test.pl
index ff1faaa14..4d852bdd6 100755
--- a/regress/run_test.pl
+++ b/regress/run_test.pl
@@ -1470,12 +1470,7 @@ sub prepare_spatial_extensions
 		}
  	}
 
-	if ( $OPT_WITH_RASTER && (
-		# NOTE: this code is assuming that the default version
-		# (!$OPT_UPGRADE_FROM) has split raster extension
-		! $OPT_UPGRADE_FROM ||
-		has_split_raster_ext($OPT_UPGRADE_FROM)
-	) )
+	if ( $OPT_WITH_RASTER && has_split_raster_ext($OPT_UPGRADE_FROM) )
 	{
 		my $sql = "CREATE EXTENSION postgis_raster";
 		if ( $OPT_UPGRADE_FROM ) {

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

Summary of changes:
 regress/run_test.pl | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list