commit: 439170c2d96af1be875d3421fe543c61361495b4
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 22 17:04:22 2018 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Mar 22 17:07:25 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=439170c2
sys-apps/portage-mgorny: Warn about abort if switching from Portage
sys-apps/portage-mgorny/portage-mgorny-9999.ebuild | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/sys-apps/portage-mgorny/portage-mgorny-9999.ebuild
b/sys-apps/portage-mgorny/portage-mgorny-9999.ebuild
index 87caced0df1..49017fa930b 100644
--- a/sys-apps/portage-mgorny/portage-mgorny-9999.ebuild
+++ b/sys-apps/portage-mgorny/portage-mgorny-9999.ebuild
@@ -54,6 +54,16 @@ PDEPEND="
)"
# NOTE: FEATURES=installsources requires debugedit and rsync
+pkg_pretend() {
+ if has_version sys-apps/portage; then
+ ewarn "If you are migrating from sys-apps/portage to
sys-apps/portage-mgorny,"
+ ewarn "please note that Portage will abort upon having to
unmerge itself."
+ ewarn "However, sys-apps/portage-mgorny will already be
installed at this"
+ ewarn "point, so you simply have to restart emerge and it will
successfully"
+ ewarn "clean the old package afterwards."
+ fi
+}
+
python_prepare_all() {
distutils-r1_python_prepare_all