Mat Schaffer wrote:
>
> Hey, does anyone happen to know the syntax for the "Depend" field in the
> packing_list file of the .pkg format?
> I'd like to have the package I'm working on depend on another I've already
> created, but I'm not sure what the line should look like.
> Anyone?
> -Mat
Mat,
You may want to use VisibleDepend instead of Depend. Depend hides the
.pkg info in BlueLinQ until the dependency is met, where VisibleDepend
doesn't.
The syntax is:
VisibleDepend: <Vendor>:<Name> <compare> <Version>
compare is a combination of =, > and <. The version is a real number.
The perl regular expression used to parse this is found in SWUpdate.pm:
if (/^Depend:\s*(\S+):(\S+)\s*(?:([!>=<]*)\s*(\S+))*/i) {
and:
if (/^VisibleDepend:\s*(\S+):(\S+)\s*(?:([!>=<]*)\s*(\S+))*/i) {
An example, (from Qube 3 OS Update 2's packing_list):
Vendor: Cobalt
Name: OS
Version: 6.2
VisibleDepend: Cobalt:OS = 6.1
-- Will
--
Will DeHaan
Software Engineer [EMAIL PROTECTED]
Sun Cobalt Server Appliances. Sun Microsystems, Inc.
_______________________________________________
cobalt-developers mailing list
[EMAIL PROTECTED]
http://list.cobalt.com/mailman/listinfo/cobalt-developers