]> granicus.if.org Git - postgis/commitdiff
Honour "Last Updated" objects comment for upgrade script (#2722)
authorSandro Santilli <strk@keybit.net>
Wed, 30 Apr 2014 11:37:16 +0000 (11:37 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 30 Apr 2014 11:37:16 +0000 (11:37 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12493 b70326c6-7e19-0410-871a-916f4a2858ee

utils/postgis_proc_upgrade.pl

index a7b7d0b44236fa08f42fc2923b5a02dbf7d6bcd0..31ba9134f41caefd0069fafc21b1e2ea9f20910e 100755 (executable)
@@ -123,7 +123,7 @@ sub find_last_updated
 sub parse_last_updated
 {
   my $comment = shift;
-  if ( $comment =~ m/.*(?:Availability|Changed):\s([^\.])\.([^.]*)/s ) {
+  if ( $comment =~ m/.*(?:Availability|Changed|Updated):\s([^\.])\.([^.]*)/s ) {
     return $1*100 + $2;
   }
   return 0;