Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 258507

Summary: app-portage/gentoolkit api: package.get_runtime_deps() and boolean associated depends
Product: Gentoo Linux Reporter: Fabian Holler <f.holler>
Component: Current packagesAssignee: Portage Tools Team <tools-portage>
Status: CONFIRMED ---    
Severity: normal CC: jingcheng01
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Fabian Holler 2009-02-10 21:31:02 UTC
Hello,

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
RDEPEND="!<dev-lang/python-2.3.6-r2
    || ( >=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.