[postgis-tickets] r16712 - Revise compute of $scriptdir so allows minors with 0.

Regina Obe lr at pcorp.us
Sun Sep 2 12:03:05 PDT 2018


Author: robe
Date: 2018-09-02 12:03:05 -0700 (Sun, 02 Sep 2018)
New Revision: 16712

Modified:
   trunk/regress/run_test.pl
Log:
Revise compute of $scriptdir so allows minors with 0.
Closes #4166

Modified: trunk/regress/run_test.pl
===================================================================
--- trunk/regress/run_test.pl	2018-08-29 13:21:10 UTC (rev 16711)
+++ trunk/regress/run_test.pl	2018-09-02 19:03:05 UTC (rev 16712)
@@ -704,7 +704,7 @@
 	if ( $OPT_EXTENSIONS ) {
 		# TODO: allow override this default with env variable ?
 		my $pgis_majmin = $libver;
-		$pgis_majmin =~ s/^([1-9]*\.[1-9]*).*/\1/;
+		$pgis_majmin =~ s/^([1-9]*\.[0-9]*).*/\1/;
 		$scriptdir = `pg_config --sharedir`;
 		chop $scriptdir;
 		$scriptdir .= "/contrib/postgis-" . $pgis_majmin;



More information about the postgis-tickets mailing list