public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/portage-mgorny/
Date: Mon, 26 Mar 2018 16:07:27 +0000 (UTC)	[thread overview]
Message-ID: <1522080423.680db13073fd89ce3cb02bbc2817423a72525ab3.mgorny@gentoo> (raw)

commit:     680db13073fd89ce3cb02bbc2817423a72525ab3
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 26 16:05:13 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Mar 26 16:07:03 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=680db130

sys-apps/portage-mgorny: Require /etc/portage/package.keywords migr

 sys-apps/portage-mgorny/portage-mgorny-9999.ebuild | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/sys-apps/portage-mgorny/portage-mgorny-9999.ebuild b/sys-apps/portage-mgorny/portage-mgorny-9999.ebuild
index 832411c48c2..492a6ca37c2 100644
--- a/sys-apps/portage-mgorny/portage-mgorny-9999.ebuild
+++ b/sys-apps/portage-mgorny/portage-mgorny-9999.ebuild
@@ -69,6 +69,22 @@ pkg_pretend() {
 		die "${EROOT%/}/etc/make.conf present"
 	fi
 
+	if [[ -f ${EROOT%/}/etc/portage/package.keywords ]]; then
+		eerror "You seem to be using /etc/portage/package.keywords. Please migrate"
+		eerror "to the new /etc/portage/package.accept_keywords location before"
+		eerror "upgrading."
+		eerror
+		if [[ -d ${EROOT%/}/etc/portage/package.accept_keywords ]]; then
+			eerror "  mv ${EROOT%/}/etc/portage/package.keywords ${EROOT%/}/etc/portage/package.accept_keywords/99old"
+		else
+			if [[ -f ${EROOT%/}/etc/portage/package.accept_keywords ]]; then
+				eerror "  cat ${EROOT%/}/etc/portage/package.accept_keywords >> ${EROOT%/}/etc/portage/package.keywords"
+			fi
+			eerror "  mv ${EROOT%/}/etc/portage/package.keywords ${EROOT%/}/etc/portage/package.accept_keywords"
+		fi
+		die "${EROOT%/}/etc/portage/package.keywords 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."


             reply	other threads:[~2018-03-26 16:07 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-26 16:07 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-04-07  7:27 [gentoo-commits] repo/gentoo:master commit in: sys-apps/portage-mgorny/ Michał Górny
2018-11-17 10:23 Michał Górny
2018-10-06 15:31 Michał Górny
2018-09-22 13:26 Michał Górny
2018-09-06 21:22 Michał Górny
2018-07-24  7:40 Michał Górny
2018-07-24  7:40 Michał Górny
2018-07-17 10:21 Michał Górny
2018-07-17 10:21 Michał Górny
2018-07-16 10:45 Michał Górny
2018-05-30 11:54 Michał Górny
2018-05-12 16:52 Michał Górny
2018-05-02 19:29 Michał Górny
2018-04-19 19:47 Michał Górny
2018-03-29 15:04 Michał Górny
2018-03-29 15:04 Michał Górny
2018-03-29 15:04 Michał Górny
2018-03-28 18:43 Michał Górny
2018-03-26 18:17 Michał Górny
2018-03-26 18:17 Michał Górny
2018-03-26 16:07 Michał Górny
2018-03-26 16:07 Michał Górny
2018-03-25 17:27 Michał Górny
2018-03-23 17:05 Michał Górny
2018-03-23 17:05 Michał Górny
2018-03-22 18:34 Michał Górny
2018-03-22 17:07 Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1522080423.680db13073fd89ce3cb02bbc2817423a72525ab3.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox