diff options
author | Michał Górny <mgorny@gentoo.org> | 2018-03-26 17:59:35 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-03-26 18:07:03 +0200 |
commit | 0ac26eba0b299f99bb15140576f68c85c8342e96 (patch) | |
tree | 3e50e8703df1776b26690738e9c69eb6dbeaa765 /sys-apps/portage-mgorny | |
parent | sys-apps/portage-mgorny: Warn about --dynamic-deps problems (diff) | |
download | gentoo-0ac26eba0b299f99bb15140576f68c85c8342e96.tar.gz gentoo-0ac26eba0b299f99bb15140576f68c85c8342e96.tar.bz2 gentoo-0ac26eba0b299f99bb15140576f68c85c8342e96.zip |
sys-apps/portage-mgorny: Require /etc/make.conf migration
Diffstat (limited to 'sys-apps/portage-mgorny')
-rw-r--r-- | sys-apps/portage-mgorny/portage-mgorny-9999.ebuild | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sys-apps/portage-mgorny/portage-mgorny-9999.ebuild b/sys-apps/portage-mgorny/portage-mgorny-9999.ebuild index 5b8cc188f76c..832411c48c2c 100644 --- a/sys-apps/portage-mgorny/portage-mgorny-9999.ebuild +++ b/sys-apps/portage-mgorny/portage-mgorny-9999.ebuild @@ -55,6 +55,20 @@ PDEPEND=" # NOTE: FEATURES=installsources requires debugedit and rsync pkg_pretend() { + if [[ -f ${EROOT%/}/etc/make.conf ]]; then + eerror "You seem to be using /etc/make.conf. Please migrate to the new" + eerror "/etc/portage/make.conf location before upgrading." + if [[ ! -f ${EROOT%/}/etc/portage/make.conf ]]; then + eerror + eerror " mv ${EROOT%/}/etc/make.conf ${EROOT%/}/etc/portage/make.conf" + else + ewarn + ewarn "WARNING: You seem to have make.conf in both locations. Please take" + ewarn "care not to accientally overwrite one with the other." + fi + die "${EROOT%/}/etc/make.conf present" + fi + 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." |