[postgis-tickets] [SCM] PostGIS branch stable-3.2 updated. 3.2.2-19-g268080c4d

git at osgeo.org git at osgeo.org
Fri Aug 12 10:30:44 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.2 has been updated
       via  268080c4d5be2be0d3e969b16d6d678ff69a0a1a (commit)
      from  50932f348030d25d0801dfe3529ef7dbaf8ff62a (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 268080c4d5be2be0d3e969b16d6d678ff69a0a1a
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