[postgis-tickets] [SCM] PostGIS branch master updated. 3.2.0-470-g64abce150
git at osgeo.org
git at osgeo.org
Thu Feb 3 05:05:15 PST 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 64abce15057e9606f3d8399ea22dc31a865a52e6 (commit)
from c6241f8c0ab54b4018d4d285a2c44b24608af891 (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 64abce15057e9606f3d8399ea22dc31a865a52e6
Author: Sandro Santilli <strk at kbt.io>
Date: Thu Feb 3 13:38:43 2022 +0100
Add support in run_test.pl for script based upgrade paths
[ci skip]
diff --git a/regress/run_test.pl b/regress/run_test.pl
index 444ee7207..d89d6944c 100755
--- a/regress/run_test.pl
+++ b/regress/run_test.pl
@@ -110,10 +110,6 @@ if ( @ARGV < 1 )
if ( $OPT_UPGRADE_PATH )
{
- if ( ! $OPT_EXTENSIONS )
- {
- die "--upgrade-path is only supported with --extension"
- }
$OPT_UPGRADE = 1; # implied
my @path = split ('--', $OPT_UPGRADE_PATH);
$OPT_UPGRADE_FROM = $path[0]
@@ -1332,22 +1328,37 @@ sub create_db
sub create_spatial
{
- my ($cmd, $rv);
- print "Creating database '$DB' \n";
+ my ($cmd, $rv);
+ print "Creating database '$DB' \n";
- $rv = create_db();
+ $rv = create_db();
- # Count database objects before installing anything
- $OBJ_COUNT_PRE = count_db_objects();
+ # Count database objects before installing anything
+ $OBJ_COUNT_PRE = count_db_objects();
- if ( $OPT_EXTENSIONS )
- {
- prepare_spatial_extensions();
- }
- else
- {
- prepare_spatial();
- }
+ if ( $OPT_EXTENSIONS )
+ {
+ prepare_spatial_extensions();
+ }
+ else
+ {
+ if ( ! $OPT_UPGRADE_FROM )
+ {
+ prepare_spatial();
+ return;
+ }
+
+ if ( $OPT_UPGRADE_FROM !~ /^unpackaged(.*)/ )
+ {
+ die "--upgrade-path without --extension is only supported with source unpackaged*";
+ }
+
+ if ( $OPT_UPGRADE_TO != ':auto' )
+ {
+ die "--upgrade-path without --extension is only supported with target :auto";
+ }
+ prepare_spatial($1);
+ }
}
-----------------------------------------------------------------------
Summary of changes:
regress/run_test.pl | 45 ++++++++++++++++++++++++++++-----------------
1 file changed, 28 insertions(+), 17 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list