[postgis-tickets] [SCM] PostGIS branch stable-3.0 updated. 3.0.6-18-gaf3e6e62c

git at osgeo.org git at osgeo.org
Fri Aug 12 10:30:08 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, stable-3.0 has been updated
       via  af3e6e62ced29612f3e22746a7e51d26b8e17389 (commit)
      from  cebb4097922cfb11bd975e80f1c96eeabc6973cd (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 af3e6e62ced29612f3e22746a7e51d26b8e17389
Author: Sandro Santilli <strk at kbt.io>
Date:   Fri Aug 12 19:29:00 2022 +0200

    run_test.pl: fix support for pre-split-raster unpackaged upgrade testing

diff --git a/regress/run_test.pl b/regress/run_test.pl
index c66331f5b..192286b2f 100755
--- a/regress/run_test.pl
+++ b/regress/run_test.pl
@@ -125,7 +125,8 @@ sub has_split_raster_ext
   my $fullver = shift;
   # unpackaged is always current, so does have
   # split raster already.
-  return 1 if $fullver =~ /^unpackaged/;
+  return 1 if $fullver =~ /^unpackaged$/;
+  $fullver =~ s/unpackaged//;
   my @ver = split(/\./, $fullver);
   return 0 if ( $ver[0] < 3 );
   return 1;
@@ -1716,7 +1717,7 @@ sub upgrade_spatial_extensions
       return 1;
     }
 
-    if ( $OPT_WITH_RASTER )
+    if ( $OPT_WITH_RASTER && has_split_raster_ext($OPT_UPGRADE_FROM) )
     {
         my $sql = "ALTER EXTENSION postgis_raster UPDATE TO '${nextver}'";
 

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

Summary of changes:
 regress/run_test.pl | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list