[postgis-tickets] r17750 - [run_test] Fix logic for use postgis_extension_upgrade()
Sandro Santilli
strk at kbt.io
Wed Aug 21 01:57:18 PDT 2019
Author: strk
Date: 2019-08-21 01:57:18 -0700 (Wed, 21 Aug 2019)
New Revision: 17750
Modified:
trunk/regress/run_test.pl
Log:
[run_test] Fix logic for use postgis_extension_upgrade()
The version before 3.0.0 did not repackage extensions, so we still
need to do the packaging ourselves.
Modified: trunk/regress/run_test.pl
===================================================================
--- trunk/regress/run_test.pl 2019-08-21 08:57:10 UTC (rev 17749)
+++ trunk/regress/run_test.pl 2019-08-21 08:57:18 UTC (rev 17750)
@@ -1520,7 +1520,7 @@
{
my $from = $OPT_UPGRADE_FROM;
$from =~ s/^unpackaged//;
- if ( ! $from || semver_lessthan($from, "2.5.0") )
+ if ( ! $from || ! semver_lessthan($from, "3.0.0") )
{
$upgrade_via_function = 1;
}
@@ -1527,7 +1527,7 @@
else
{
print "WARNING: postgis_extensions_upgrade()".
- " not available in version $from.".
+ " not available or functional in version $from.".
" We'll use manual upgrade.\n";
}
}
More information about the postgis-tickets
mailing list