Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 258507 - app-portage/gentoolkit api: package.get_runtime_deps() and boolean associated depends
Summary: app-portage/gentoolkit api: package.get_runtime_deps() and boolean associated...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
: 243334 (view as bug list)
Depends on:
Reported: 2009-02-10 21:31 UTC by Fabian Holler
Modified: 2010-01-15 06:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Holler 2009-02-10 21:31:02 UTC

I'm stumpled over the problem that package.get_runtime_deps() don't consider the boolean expressions in an ebuild.

i.e.: The python-updater/python-updater-0.2.ebuild has
    || ( >=sys-apps/portage-2.1.2 sys-apps/pkgcore sys-apps/paludis )"

get_runtime_deps() only returns an list with all depends found:
[('>=', [], 'sys-apps/portage-2.1.2'), ('', [], 'sys-apps/pkgcore'), ('', [], 'sys-apps/paludis')

It would be nice if there would be a way to get the information from the api that the package portage OR paludis is needed as dependency instead of the wrong information that both packages are needed.

Reproducible: Always

Steps to Reproduce:
Comment 1 Paul Varner (RETIRED) gentoo-dev 2010-01-07 20:08:44 UTC
*** Bug 243334 has been marked as a duplicate of this bug. ***
Comment 2 Douglas Anderson 2010-01-15 06:16:18 UTC
I'm working on this, but I'm not sure if it'll be done for 0.3.0, since it's not used internally in gentoolkit. But I do agree, the new API should have some way of expressing this.