Martin, Craig wrote:
> I am attempting to code the indicated functions for RPMs.  We have 
> talked about this before.  Since I didn’t write it down and my memory 
> isn’t what it used to be, what is the purpose of the package manager 
> specific version of the functions in the subject line (i.e. 
> RPMPackageList and RPMPackageCheck).  I have been looking the FreeBSD 
> incarnations and they seem to do almost exactly the same thing.

Yes, almost exactly is the key.  Close enough I wish I had a useful way 
to cache the information ;-)

PackageCheck returns 0 or 1.  Yes or no.

PackageList fills an array with the matching packages.

The former is used to determine if action is necessary.  The later is 
used to determine which packages to remove.

-- 
Jo Rhett
senior geek
Silicon Valley Colocation
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine

Reply via email to