]> granicus.if.org Git - postgis/commitdiff
[check_all_upgrads] Enable testing of upgrades from unpackaged
authorSandro Santilli <strk@kbt.io>
Thu, 18 Oct 2018 22:16:30 +0000 (22:16 +0000)
committerSandro Santilli <strk@kbt.io>
Thu, 18 Oct 2018 22:16:30 +0000 (22:16 +0000)
Closes #4204

git-svn-id: http://svn.osgeo.org/postgis/trunk@16924 b70326c6-7e19-0410-871a-916f4a2858ee

utils/check_all_upgrades.sh

index 00933cade0a2b7f8e6f20d8c49122db3a559a00c..c3547b040cd28575694690392831a64fd88e4789 100755 (executable)
@@ -66,9 +66,11 @@ for EXT in ${INSTALLED_EXTENSIONS}; do
   for fname in unpackaged $files; do
     from_version="$fname"
     # only consider versions older than ${to_version}
-    cmp=`semver_compare "${from_version}" "${to_version}"`
-    if test $cmp -ge 0; then
-      continue
+    if test $fname != "unpackaged"; then # unpackaged is always older
+      cmp=`semver_compare "${from_version}" "${to_version}"`
+      if test $cmp -ge 0; then
+        continue
+      fi
     fi
     UPGRADE_PATH="${from_version}--${to_version}"
     if test -e ${EXT}--${UPGRADE_PATH}.sql; then