1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Fix version comparison

This commit is contained in:
Baptiste Daroussin 2014-05-27 10:55:39 +00:00
parent 52300f71d3
commit 599ded0e50
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355485

View File

@ -64,13 +64,13 @@ _PGSQL_VER!= ${PG_CONFIG} --version | ${SED} -n 's/PostgreSQL[^0-9]*\([0-9][0-9]
. if defined(pgsql_ARGS)
. if ${pgsql_ARGS:M*+}
. for version in ${VALID_PGSQL_VER}
. if ${pgsql_ARGS:S/+//} <= ${version}
. if ${pgsql_ARGS:S/+//} <= ${version:S/.//}
_WANT_PGSQL_VER+=${version}
. endif
. endfor
. elif ${pgsql_ARGS:M*-}
. for version in ${VALID_PGSQL_VER}
. if ${pgsql_ARGS:S/-//} >= ${version}
. if ${pgsql_ARGS:S/-//} >= ${version:S/.//}
_WANT_PGSQL_VER+=${version}
. endif
. endfor