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

Bug 5731

Summary: portage-2.0.20 || ( foo bar )
Product: Portage Development Reporter: Maurizio Disimino <kevin>
Component: UnclassifiedAssignee: Daniel Robbins (RETIRED) <drobbins>
Status: RESOLVED FIXED    
Severity: enhancement CC: kevin
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Maurizio Disimino 2002-07-29 10:51:19 UTC
from the Portage Changelog:

DEPEND="|| ( foo bar oni )" now works
  correctly and will try to satisfy "foo" (the first package) 
if none are installed.

Really a good work. This is an useful statement.
Now, I think, we just need a way to specify 
behavior A if "foo" is installed, behavior B if
"bar" is installed and so on ..

A workaround would be [ -x /path/of/foo ]; then
but portage might offer a better way.

Thanks.

Maurizio Disimino
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-07-29 20:55:58 UTC
We generally use USE variables for this.