sys-apps/portage-mgorny: Warn about abort if switching from Portage
authorMichał Górny <mgorny@gentoo.org>
Thu, 22 Mar 2018 17:04:22 +0000 (18:04 +0100)
committerMichał Górny <mgorny@gentoo.org>
Thu, 22 Mar 2018 17:07:25 +0000 (18:07 +0100)
sys-apps/portage-mgorny/portage-mgorny-9999.ebuild

index 87caced0df104625e3bfae938082358f028f0ae7..49017fa930ba1db70c2db99f6d3127e56e125ce1 100644 (file)
@@ -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