From: Sandro Santilli Date: Thu, 18 Oct 2018 22:16:30 +0000 (+0000) Subject: [check_all_upgrads] Enable testing of upgrades from unpackaged X-Git-Tag: 3.0.0alpha1~337 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6ec9009f0804310aab6cd07b8d5b112649d22c9;p=postgis [check_all_upgrads] Enable testing of upgrades from unpackaged Closes #4204 git-svn-id: http://svn.osgeo.org/postgis/trunk@16924 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/utils/check_all_upgrades.sh b/utils/check_all_upgrades.sh index 00933cade..c3547b040 100755 --- a/utils/check_all_upgrades.sh +++ b/utils/check_all_upgrades.sh @@ -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