Shawn Walker wrote:
Bob Doolittle wrote:
If depend actions of type=incorporate and type=require are really separate actions, then a "Duplicate actions" exception is surprising. Is this behavior we think worth specifically retaining for some reason, or do we consider this a bug?

The key attribute for depend actions is 'fmri' (currently), and the duplicate action check is based on key attribute. As such, you can't have multiple depend actions (of any type) for the same package FMRI.

Bart might know if this is being changed, but for the moment, I believe its intentional to prevent silly things like:

depend type=optional [email protected]
depend type=require [email protected]

Cheers,

The client code doesn't care.  Right now it's possible to construct
impossible configurations; I'll add some test cases to the solver
wad to see what happens.

Certainly having incorp & require dependencies on the same pkg is
fine, so long as incorp fmri >= require fmri :-).

- Bart


--
Bart Smaalders                  Solaris Kernel Performance
[email protected]         http://blogs.sun.com/barts
"You will contribute more with mercurial than with thunderbird."
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to