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