[postgis-tickets] r16242 - Upgrade SFCGAL too when requested
Sandro Santilli
strk at kbt.io
Tue Jan 9 10:40:52 PST 2018
Author: strk
Date: 2018-01-09 10:40:52 -0800 (Tue, 09 Jan 2018)
New Revision: 16242
Modified:
branches/2.3/regress/run_test.pl
Log:
Upgrade SFCGAL too when requested
Modified: branches/2.3/regress/run_test.pl
===================================================================
--- branches/2.3/regress/run_test.pl 2018-01-09 18:36:31 UTC (rev 16241)
+++ branches/2.3/regress/run_test.pl 2018-01-09 18:40:52 UTC (rev 16242)
@@ -1398,6 +1398,22 @@
die "$script not found\n";
}
}
+
+ if ( $OPT_WITH_SFCGAL )
+ {
+ my $script = `ls ${STAGED_SCRIPTS_DIR}/sfcgal_upgrade.sql`;
+ chomp($script);
+ if ( -e $script )
+ {
+ print "Upgrading sfcgal\n";
+ load_sql_file($script);
+ }
+ else
+ {
+ die "$script not found\n";
+ }
+ }
+
return 1;
}
@@ -1434,6 +1450,17 @@
}
}
+ if ( $OPT_WITH_SFCGAL )
+ {
+ my $sql = "ALTER EXTENSION postgis_sfcgal UPDATE TO '${nextver}'";
+ $cmd = "psql $psql_opts -c \"" . $sql . "\" $DB >> $REGRESS_LOG 2>&1";
+ $rv = system($cmd);
+ if ( $rv ) {
+ fail "Error encountered creating EXTENSION POSTGIS_SFCGAL", $REGRESS_LOG;
+ die;
+ }
+ }
+
return 1;
}
More information about the postgis-tickets
mailing list