From 5a06b11167e1cb18ada0af7605e84a374899ea52 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 19 Jan 2018 22:43:55 +0000 Subject: [PATCH] [run_test.pl] Do not assume OPT_UPGRADE_FROM was given git-svn-id: http://svn.osgeo.org/postgis/trunk@16343 b70326c6-7e19-0410-871a-916f4a2858ee --- regress/run_test.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/regress/run_test.pl b/regress/run_test.pl index e720f335c..9de58cf3b 100755 --- a/regress/run_test.pl +++ b/regress/run_test.pl @@ -1325,7 +1325,7 @@ sub prepare_spatial_extensions if ( semver_lessthan($OPT_UPGRADE_FROM, "2.2.0") ) { print "NOTICE: skipping SFCGAL extension create " - . "as not available in version $OPT_UPGRADE_FROM\n"; + . "as not available in version '$OPT_UPGRADE_FROM'\n"; last; } $sql .= " VERSION '" . $OPT_UPGRADE_FROM . "'"; @@ -1493,10 +1493,10 @@ sub upgrade_spatial_extensions if ( $OPT_UPGRADE_FROM eq "unpackaged" ) { $sql = "CREATE EXTENSION postgis_sfcgal VERSION '${nextver}' FROM unpackaged"; } - elsif ( semver_lessthan($OPT_UPGRADE_FROM, "2.2.0") ) + elsif ( $OPT_UPGRADE_FROM && semver_lessthan($OPT_UPGRADE_FROM, "2.2.0") ) { print "NOTICE: installing SFCGAL extension on upgrade " - . "as it was not available in version $OPT_UPGRADE_FROM\n"; + . "as it was not available in version '$OPT_UPGRADE_FROM'\n"; $sql = "CREATE EXTENSION postgis_sfcgal VERSION '${nextver}'"; } else -- 2.50.1