diff options
author | Tom Gillespie <tgbugs@gmail.com> | 2023-01-15 17:46:25 -0500 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-02-17 05:49:01 +0000 |
commit | c65bbcf7630f454ce84a4fa6b8ebff8488c6bfb2 (patch) | |
tree | c9ef45030456838049762faf61007e8075ccfee5 /lib/_emerge/depgraph.py | |
parent | Update NEWS (diff) | |
download | gentoo-portage-c65bbcf7630f454ce84a4fa6b8ebff8488c6bfb2.tar.xz gentoo-portage-c65bbcf7630f454ce84a4fa6b8ebff8488c6bfb2.zip |
emerge: add --onlydeps-with-ideps=<y|n> option (bug 890777)
Add --onlydeps-with-ideps option in order to include install-time
dependencies with --onlydeps and --onlydeps-with-rdeps=n. The
dependencies that get pulled in are those that are necessary for
emerge --nodeps to succeed when run after the equivalent --onlydeps.
The default --onlydeps --onlydeps-with-rdeps=n behavior is unchanged.
This also adds a new test file test_onlydeps_ideps.py that is derived
from test_onlydeps_minimal.py and tests the behavior for EAPI={7,8}.
Additional tests have been added to test_onlydeps_minimal.py to ensure
that the behavior at EAPI=0 remains unchanged.
Bug: https://bugs.gentoo.org/890777
Signed-off-by: Tom Gillespie <tgbugs@gmail.com>
Closes: https://github.com/gentoo/portage/pull/979
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'lib/_emerge/depgraph.py')
-rw-r--r-- | lib/_emerge/depgraph.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/_emerge/depgraph.py b/lib/_emerge/depgraph.py index 9030b6543d8f..1631ed1264ba 100644 --- a/lib/_emerge/depgraph.py +++ b/lib/_emerge/depgraph.py @@ -3718,7 +3718,8 @@ class depgraph: ): edepend["RDEPEND"] = "" edepend["PDEPEND"] = "" - edepend["IDEPEND"] = "" + if self._frozen_config.myopts.get("--onlydeps-with-ideps") in ("n", None): + edepend["IDEPEND"] = "" ignore_build_time_deps = False if pkg.built and not removal_action: |