From: "Zac Medico" <zmedico@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/tests/emerge/
Date: Tue, 1 May 2018 17:52:39 +0000 (UTC) [thread overview]
Message-ID: <1525197122.844998daa50e9db0a337bc0cf9f665d224779665.zmedico@gentoo> (raw)
commit: 844998daa50e9db0a337bc0cf9f665d224779665
Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Tue May 1 17:49:07 2018 +0000
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Tue May 1 17:52:02 2018 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=844998da
SimpleEmergeTestCase: EAPI 7_pre1 has/best_version -b
pym/portage/tests/emerge/test_simple.py | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/pym/portage/tests/emerge/test_simple.py b/pym/portage/tests/emerge/test_simple.py
index f99c77927..17dcd548d 100644
--- a/pym/portage/tests/emerge/test_simple.py
+++ b/pym/portage/tests/emerge/test_simple.py
@@ -69,6 +69,12 @@ pkg_info() {
}
pkg_preinst() {
+ local root_arg
+ if ___eapi_best_version_and_has_version_support_-b_-d_-r; then
+ root_arg="-b"
+ else
+ root_arg="--host-root"
+ fi
einfo "called pkg_preinst for $CATEGORY/$PF"
# Test that has_version and best_version work correctly with
@@ -82,11 +88,11 @@ pkg_preinst() {
einfo "has_version does not detect an installed instance of $CATEGORY/$PN:$SLOT"
fi
if [[ ${EPREFIX} != ${PORTAGE_OVERRIDE_EPREFIX} ]] ; then
- if has_version --host-root $CATEGORY/$PN:$SLOT ; then
- einfo "has_version --host-root detects an installed instance of $CATEGORY/$PN:$SLOT"
- einfo "best_version --host-root reports that the installed instance is $(best_version $CATEGORY/$PN:$SLOT)"
+ if has_version ${root_arg} $CATEGORY/$PN:$SLOT ; then
+ einfo "has_version ${root_arg} detects an installed instance of $CATEGORY/$PN:$SLOT"
+ einfo "best_version ${root_arg} reports that the installed instance is $(best_version $CATEGORY/$PN:$SLOT)"
else
- einfo "has_version --host-root does not detect an installed instance of $CATEGORY/$PN:$SLOT"
+ einfo "has_version ${root_arg} does not detect an installed instance of $CATEGORY/$PN:$SLOT"
fi
fi
}
@@ -110,12 +116,12 @@ pkg_preinst() {
"MISC_CONTENT": install_something,
},
"dev-libs/C-1": {
- "EAPI" : "6",
+ "EAPI" : "7_pre1",
"KEYWORDS": "~x86",
"RDEPEND": "dev-libs/D[flag]",
},
"dev-libs/D-1": {
- "EAPI" : "6",
+ "EAPI" : "7_pre1",
"KEYWORDS": "~x86",
"IUSE" : "flag",
},
next reply other threads:[~2018-05-01 17:52 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-01 17:52 Zac Medico [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-06-20 0:01 [gentoo-commits] proj/portage:master commit in: pym/portage/tests/emerge/ Zac Medico
2013-03-21 7:51 Zac Medico
2012-07-05 8:45 Zac Medico
2011-12-16 23:29 Zac Medico
2011-11-08 16:13 Zac Medico
2011-10-25 6:28 Zac Medico
2011-10-25 0:16 Zac Medico
2011-10-23 22:24 Zac Medico
2011-10-23 22:17 Zac Medico
2011-10-23 22:16 Zac Medico
2011-10-17 1:47 Zac Medico
2011-09-26 19:42 Zac Medico
2011-09-05 23:26 Zac Medico
2011-09-05 23:22 Zac Medico
2011-09-05 23:06 Zac Medico
2011-09-05 21:43 Zac Medico
2011-09-05 21:28 Zac Medico
2011-09-04 17:22 Zac Medico
2011-09-02 6:34 Zac Medico
2011-09-02 2:51 Zac Medico
2011-09-02 1:47 Zac Medico
2011-09-01 6:55 Zac Medico
2011-08-30 20:47 Zac Medico
2011-08-30 2:13 Zac Medico
2011-08-29 18:25 Zac Medico
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=1525197122.844998daa50e9db0a337bc0cf9f665d224779665.zmedico@gentoo \
--to=zmedico@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