]> granicus.if.org Git - postgis/commitdiff
Fix guessing module from .sql script (#2659)
authorSandro Santilli <strk@keybit.net>
Mon, 3 Mar 2014 18:01:18 +0000 (18:01 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 3 Mar 2014 18:01:18 +0000 (18:01 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12290 b70326c6-7e19-0410-871a-916f4a2858ee

utils/postgis_proc_upgrade.pl

index a9432816984a69694174ff31766a8d84d551e228..a7b7d0b44236fa08f42fc2923b5a02dbf7d6bcd0 100755 (executable)
@@ -162,7 +162,7 @@ while(<INPUT>)
        if (/INSTALL VERSION: (.*)/)
        {
                                $version_to = $1;
-                               last;
+                               #last;
        }
        elsif (/TYPE raster/)
        {
@@ -445,14 +445,14 @@ DECLARE
 BEGIN
        --
        -- This uses postgis_lib_version() rather then
-       -- postgis_scripts_installed() as in 1.0 because
+       -- MODULE_scripts_installed() as in 1.0 because
        -- in the 1.0 => 1.1 transition that would result
        -- in an impossible upgrade:
        --
        --   from 0.3.0 to 1.1.0
        --
        -- Next releases will still be ok as
-       -- postgis_lib_version() and postgis_scripts_installed()
+       -- postgis_lib_version() and MODULE_scripts_installed()
        -- would both return actual PostGIS release number.
        -- 
        BEGIN