[postgis-tickets] [SCM] PostGIS branch master updated. 3.3.0rc2-103-g1fdafbffd

git at osgeo.org git at osgeo.org
Fri Sep 16 13:08:27 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  1fdafbffdc6087330e1e8324a81f247b1c1a0e51 (commit)
      from  3bc1bd94958644d0d5ddba6d2a6ce475ddfd869b (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 1fdafbffdc6087330e1e8324a81f247b1c1a0e51
Author: Sandro Santilli <strk at kbt.io>
Date:   Fri Sep 16 22:08:11 2022 +0200

    Check for the presence of link target when installing upgrade paths

diff --git a/loader/postgis.pl b/loader/postgis.pl
index c4ec9eb75..eb12e22e5 100644
--- a/loader/postgis.pl
+++ b/loader/postgis.pl
@@ -70,14 +70,14 @@ sub install_upgrade_from
 
 		#print " EXTENSION: [${extname}]\n";
 
-		# TODO: if the target is before 3.3.0 we need to symlink
-		#       ${extname}--ANY--${to} to ${extname}--${from}--${to}
+		die "File ${EXTDIR}/${extname}--TEMPLATED--TO--ANY.sql is missing"
+			unless -f "${EXTDIR}/${extname}--TEMPLATED-TO-ANY.sql";
 
 		my $shcmd = "ln -fvs '${extname}--TEMPLATED--TO--ANY.sql' '${EXTDIR}/${extname}--${from}--ANY.sql'";
 		#print " CMD: ${shcmd}\n";
 		my $rv = system($shcmd);
 		if ( $rv ) {
-			die "Error encountered running: $cmd: $!";
+			die "Error encountered running: $shcmd: $!";
 		}
 
 	}

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

Summary of changes:
 loader/postgis.pl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list