diff options
author | Michał Górny <mgorny@gentoo.org> | 2016-07-30 21:07:29 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2016-07-30 21:13:46 +0200 |
commit | b7a4174e075a922a255c0ff4a6ebd4f6d0437c61 (patch) | |
tree | 8295e33b5ca69551939e30c2d2b765c50c55568c /dev-lang/python/python-2.7.12.ebuild | |
parent | 253681c1362663f2f520ec36c564852877729a91 (diff) | |
download | gentoo-b7a4174e075a922a255c0ff4a6ebd4f6d0437c61.tar.gz gentoo-b7a4174e075a922a255c0ff4a6ebd4f6d0437c61.tar.xz |
dev-lang/python: Remove remnants of python-updater
Remove the remaining dependencies on deprecated python-updater,
and update the postinst messages appropriately. For Python 2.7,
the message has been removed altogether since it is the oldest version
supported by PYTHON_TARGETS. For the remaining versions, just inform
about potential PYTHON_TARGETS changes necessary.
The modified versions are not revision-bumped to avoid unnecessary
rebuilds due to a minor change. The versions that are still
newest-visible (i.e. not replaced by another version or revision bump)
will be bumped when python-updater is lastrited.
Diffstat (limited to 'dev-lang/python/python-2.7.12.ebuild')
-rw-r--r-- | dev-lang/python/python-2.7.12.ebuild | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/dev-lang/python/python-2.7.12.ebuild b/dev-lang/python/python-2.7.12.ebuild index 15f7436a60e..992882b2ebd 100644 --- a/dev-lang/python/python-2.7.12.ebuild +++ b/dev-lang/python/python-2.7.12.ebuild @@ -66,8 +66,7 @@ DEPEND="${RDEPEND} !sys-devel/gcc[libffi]" RDEPEND+=" !build? ( app-misc/mime-types ) doc? ( dev-python/python-docs:${SLOT} )" -PDEPEND=">=app-eselect/eselect-python-20140125-r1 - app-admin/python-updater" +PDEPEND=">=app-eselect/eselect-python-20140125-r1" S="${WORKDIR}/${MY_P}" @@ -343,12 +342,6 @@ src_install() { fi } -pkg_preinst() { - if has_version "<${CATEGORY}/${PN}-${SLOT}" && ! has_version "${CATEGORY}/${PN}:2.7"; then - python_updater_warning="1" - fi -} - eselect_python_update() { if [[ -z "$(eselect python show)" || ! -f "${EROOT}usr/bin/$(eselect python show)" ]]; then eselect python update @@ -357,12 +350,6 @@ eselect_python_update() { pkg_postinst() { eselect_python_update - - if [[ "${python_updater_warning}" == "1" ]]; then - ewarn "You have just upgraded from an older version of Python." - ewarn "You should switch active version of Python ${PV%%.*} and run" - ewarn "'python-updater [options]' to rebuild Python modules." - fi } pkg_postrm() { |