Am i reading correctly that require-origin doesn't pull in a package, but requires a minimum level if that package is present? If so, the text in depend.py lines 59-62 might make that a little clearer.

depend.py:
lines 201: Documentation of what the parameters are would be nice.
201-233: Maybe I'm missing something but it seems like errors is always either an empty list or a list containing exactly one element? Using a list in that case seems strange.
318: nit s/applie/applies

There's also integration that needs to be done with pkgdep to make it play nice with these new dependency types (mostly I think it means taking into account and potentially generating require-any dependencies). I can take that on as an RFE in the future.

Thanks,
Brock

On 09/17/10 01:14 PM, Bart Smaalders wrote:
This is the fix for:

16327 New dependency types desired

It adds three new dependency types:

require-conditional - dependency on minimum version of specified package
    if predicate package is installed at specified version or newer.
    This
require-any - dependency on minimum version of any of the specified
    packages.

require-origin - specified package must be at this version or newer
    in order to install this package; if root-image=true, dependency is
    on version installed in / rather than image being modified.

http://cr.opensolaris.org/~barts/16327/

- Bart



_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to