[postgis-tickets] [SCM] PostGIS branch stable-3.2 updated. 3.2.2-8-g1f3c83b49
git at osgeo.org
git at osgeo.org
Fri Aug 5 22:33:56 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 1f3c83b49f36cb882f3712ca5cb836e098016653 (commit)
from 60244502e3ee1cf2c56b67be334c678ab28f0b27 (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 1f3c83b49f36cb882f3712ca5cb836e098016653
Author: Sandro Santilli <strk at kbt.io>
Date: Sat Aug 6 07:26:59 2022 +0200
Consider full version when guarding against downgrades
References #5202 in 3.2 branch (3.2.3dev)
diff --git a/utils/postgis_proc_upgrade.pl b/utils/postgis_proc_upgrade.pl
index cbaf06e36..028535a05 100755
--- a/utils/postgis_proc_upgrade.pl
+++ b/utils/postgis_proc_upgrade.pl
@@ -91,6 +91,7 @@ my $sql_file = $ARGV[0];
my $module = 'postgis';
my $soname = '';
my $version_to = "";
+my $version_to_full = "";
my $version_to_num = 0;
my $version_from = $ARGV[1];
my $version_from_num = 0;
@@ -132,8 +133,9 @@ close(INPUT);
die "Unable to locate target new version number in $sql_file\n"
if( !$version_to );
-if ( $version_to =~ /(\d+)\.(\d+)\..*/ )
+if ( $version_to =~ /(\d+)\.(\d+)\.(\d+)([^' ]*)/ )
{
+ $version_to_full = $1 . '.' . $2 . '.' . $3 . $4;
$version_to = $1 . "." . $2;
$version_to_num = 100 * $1 + $2;
}
@@ -144,7 +146,7 @@ else
print qq{
--
--- UPGRADE SCRIPT TO PostGIS $version_to
+-- UPGRADE SCRIPT TO PostGIS $version_to_full
--
};
@@ -160,7 +162,7 @@ print "SET search_path TO $schema;\n" if $schema;
#
while(<DATA>)
{
- s/NEWVERSION/$version_to/g;
+ s/NEWVERSION/$version_to_full/g;
s/MODULE/$module/g;
print;
}
-----------------------------------------------------------------------
Summary of changes:
utils/postgis_proc_upgrade.pl | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list