[postgis-tickets] r16924 - [check_all_upgrads] Enable testing of upgrades from unpackaged

Sandro Santilli strk at kbt.io
Thu Oct 18 03:16:30 PDT 2018


Author: strk
Date: 2018-10-18 15:16:30 -0700 (Thu, 18 Oct 2018)
New Revision: 16924

Modified:
   trunk/utils/check_all_upgrades.sh
Log:
[check_all_upgrads] Enable testing of upgrades from unpackaged

Closes #4204

Modified: trunk/utils/check_all_upgrades.sh
===================================================================
--- trunk/utils/check_all_upgrades.sh	2018-10-18 21:33:29 UTC (rev 16923)
+++ trunk/utils/check_all_upgrades.sh	2018-10-18 22:16:30 UTC (rev 16924)
@@ -66,9 +66,11 @@
   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



More information about the postgis-tickets mailing list