summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-03-22 18:04:22 +0100
committerMichał Górny <mgorny@gentoo.org>2018-03-22 18:07:25 +0100
commit439170c2d96af1be875d3421fe543c61361495b4 (patch)
tree9a1e92d4aa278148014cd234204835b84698b1b5 /sys-apps
parentdev-libs/libclc: Add 0.2.0_pre20180319 snapshot (diff)
downloadgentoo-439170c2d96af1be875d3421fe543c61361495b4.tar.gz
gentoo-439170c2d96af1be875d3421fe543c61361495b4.tar.bz2
gentoo-439170c2d96af1be875d3421fe543c61361495b4.zip
sys-apps/portage-mgorny: Warn about abort if switching from Portage
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/portage-mgorny/portage-mgorny-9999.ebuild10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys-apps/portage-mgorny/portage-mgorny-9999.ebuild b/sys-apps/portage-mgorny/portage-mgorny-9999.ebuild
index 87caced0df10..49017fa930ba 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