[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] .pkg development: packing_list
- Subject: Re: [cobalt-developers] .pkg development: packing_list
 
- From: Will DeHaan <null@xxxxxxx>
 
- Date: Fri May 25 01:50:22 2001
 
- List-id: Discussion Forum for developers on Cobalt Networks products <cobalt-developers.list.cobalt.com>
 
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              will.dehaan@xxxxxxx
Sun Cobalt Server Appliances.  Sun Microsystems, Inc.