diff options
author | Brian Evans <grknight@gentoo.org> | 2018-09-18 10:06:26 -0400 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2018-09-18 10:11:38 -0400 |
commit | b9fb307b2c082f70555cb8ba0d530aef070b25d9 (patch) | |
tree | 86f0c30860009b8c66c15697fd9c53d281806209 /dev-db/percona-server | |
parent | dev-db/percona-server: Drop old (diff) | |
download | gentoo-b9fb307b2c082f70555cb8ba0d530aef070b25d9.tar.gz gentoo-b9fb307b2c082f70555cb8ba0d530aef070b25d9.tar.bz2 gentoo-b9fb307b2c082f70555cb8ba0d530aef070b25d9.zip |
dev-db/percona-server: Drop versionator for eapi7-ver
Package-Manager: Portage-2.3.49, Repoman-2.3.10
Diffstat (limited to 'dev-db/percona-server')
-rw-r--r-- | dev-db/percona-server/percona-server-5.6.40.84.0.ebuild | 12 | ||||
-rw-r--r-- | dev-db/percona-server/percona-server-5.6.41.84.1.ebuild | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/dev-db/percona-server/percona-server-5.6.40.84.0.ebuild b/dev-db/percona-server/percona-server-5.6.40.84.0.ebuild index c56c135cbbb4..e9264582226d 100644 --- a/dev-db/percona-server/percona-server-5.6.40.84.0.ebuild +++ b/dev-db/percona-server/percona-server-5.6.40.84.0.ebuild @@ -9,11 +9,11 @@ CMAKE_MAKEFILE_GENERATOR=emake # Keeping eutils in EAPI=6 for emktemp in pkg_config inherit linux-info python-any-r1 eutils flag-o-matic prefix toolchain-funcs \ - versionator user cmake-utils multilib-minimal + eapi7-ver user cmake-utils multilib-minimal -MY_PV=$(replace_version_separator 3 '-') +MY_PV=$(ver_rs 3 '-') MY_PN="Percona-Server" -MY_MAJOR_PV=$(get_version_component_range 1-2) +MY_MAJOR_PV=$(ver_cut 1-2) MY_RELEASE_NOTES_URI="https://www.percona.com/doc/percona-server/5.6/release-notes/release-notes_index.html" SRC_URI="https://www.percona.com/downloads/${MY_PN}-${MY_MAJOR_PV}/${MY_PN}-${MY_PV}/source/tarball/${PN}-${MY_PV}.tar.gz" @@ -680,12 +680,12 @@ pkg_postinst() { einfo else local _replacing_version= + local _new_version_branch=$(ver_cut 1-3 "${PV}") for _replacing_version in ${REPLACING_VERSIONS}; do - local _new_version_branch=$(get_version_component_range 1-3 "${PV}") - local _replacing_version_branch=$(get_version_component_range 1-3 "${_replacing_version}") + local _replacing_version_branch=$(ver_cut 1-3 "${_replacing_version}") debug-print "Updating an existing installation (v${_replacing_version}; branch '${_replacing_version_branch}') ..." - if ! version_is_at_least "${_new_version_branch}" "${_replacing_version_branch}"; then + if ver_test "${_new_version_branch}" -gt "${_replacing_version_branch}"; then debug-print "Upgrading from v${_replacing_version_branch} to v${_new_version_branch} ..." # https://www.percona.com/blog/2014/09/19/mysql-upgrade-best-practices/ diff --git a/dev-db/percona-server/percona-server-5.6.41.84.1.ebuild b/dev-db/percona-server/percona-server-5.6.41.84.1.ebuild index 0f90f84fff87..52760d63376a 100644 --- a/dev-db/percona-server/percona-server-5.6.41.84.1.ebuild +++ b/dev-db/percona-server/percona-server-5.6.41.84.1.ebuild @@ -9,11 +9,11 @@ CMAKE_MAKEFILE_GENERATOR=emake # Keeping eutils in EAPI=6 for emktemp in pkg_config inherit linux-info python-any-r1 eutils flag-o-matic prefix toolchain-funcs \ - versionator user cmake-utils multilib-minimal + eapi7-ver user cmake-utils multilib-minimal -MY_PV=$(replace_version_separator 3 '-') +MY_PV=$(ver_rs 3 '-') MY_PN="Percona-Server" -MY_MAJOR_PV=$(get_version_component_range 1-2) +MY_MAJOR_PV=$(ver_cut 1-2) MY_RELEASE_NOTES_URI="https://www.percona.com/doc/percona-server/5.6/release-notes/release-notes_index.html" SRC_URI="https://www.percona.com/downloads/${MY_PN}-${MY_MAJOR_PV}/${MY_PN}-${MY_PV}/source/tarball/${PN}-${MY_PV}.tar.gz" @@ -680,12 +680,12 @@ pkg_postinst() { einfo else local _replacing_version= + local _new_version_branch=$(ver_cut 1-3 "${PV}") for _replacing_version in ${REPLACING_VERSIONS}; do - local _new_version_branch=$(get_version_component_range 1-3 "${PV}") - local _replacing_version_branch=$(get_version_component_range 1-3 "${_replacing_version}") + local _replacing_version_branch=$(ver_cut 1-3 "${_replacing_version}") debug-print "Updating an existing installation (v${_replacing_version}; branch '${_replacing_version_branch}') ..." - if ! version_is_at_least "${_new_version_branch}" "${_replacing_version_branch}"; then + if ver_test "${_new_version_branch}" -gt "${_replacing_version_branch}"; then debug-print "Upgrading from v${_replacing_version_branch} to v${_new_version_branch} ..." # https://www.percona.com/blog/2014/09/19/mysql-upgrade-best-practices/ |