Re: module macros are expanded too late - was Determining Solaris patch revisions

2005-09-23 Thread Ed Brown
On Fri, 2005-09-23 at 06:20, [EMAIL PROTECTED] wrote: > control: >addinstallable = ( sl3 ) >actionsequence = ( ... shellcommands ) > classes: >sl3 = ( PrepModule(HasSL,"noargs") ) > import: >sl3:: sl3.conf > [in sl3.conf...] > shellcommands: >sl3:: "/bin/echo hallo from sl

Re: module macros are expanded too late - was Determining Solaris patch revisions

2005-09-23 Thread Ed Brown
On Fri, 2005-09-23 at 06:20, [EMAIL PROTECTED] wrote: >sl3 = ( PrepModule(HasSL,"noargs") ) By the way, for PrepModule, the class is "True if the named module exists and can be executed." (http://www.cfengine.org/docs/cfengine-Reference.html#index-PrepModule-3) This in itself seems kind of u

Re: module macros are expanded too late - was Determining Solaris patch revisions

2005-09-23 Thread rader
> From: "Martin, Jason H" > If you are having problems with your module's classes and actions being > set too late, try putting it in a PrepModule line. That causes it to > happen at parse time. I have the module HasSL which returns +sl3 on ScientificLinux 3.x boxes and... control: addi

Re: Determining Solaris patch revisions

2005-09-22 Thread Tim Nelson
On Wed, 21 Sep 2005 [EMAIL PROTECTED] wrote: > I was thinking of writing a module that would parse the output of 'showrev > -p', > determine the latest rev and then for each patch print out: > > =patch_= > > For example: > > =patch_118558=3 > > Numerical comparisons could then be used to deter

RE: module macros are expanded too late - was Determining Solaris patch revisions

2005-09-22 Thread Martin, Jason H
artin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, September 22, 2005 3:50 PM To: [EMAIL PROTECTED] Cc: Help-cfengine@gnu.org Subject: Re: module macros are expanded too late - was Determining Solaris patch revisions Hi Rader, Sh

Re: module macros are expanded too late - was Determining Solaris patch revisions

2005-09-22 Thread david . nelson
elson [EMAIL PROTECTED] 09/21/2005 09:18 AM To "David E. Nelson" <[EMAIL PROTECTED]> cc Help-cfengine@gnu.org Subject Re: Determining Solaris patch revisions > I was thinking of writing a module that would parse the output of 'showrev >  -p',

Re: Determining Solaris patch revisions

2005-09-21 Thread rader
> I was thinking of writing a module that would parse the output of 'showrev > -p', > determine the latest rev and then for each patch print out: > > =patch_= > > For example: > > =patch_118558=3 > > Numerical comparisons could then be used to determin if a rev was equal, > grea

Determining Solaris patch revisions

2005-09-20 Thread David E. Nelson
Hi All, I was thinking of writing a module that would parse the output of 'showrev -p', determine the latest rev and then for each patch print out: =patch_= For example: =patch_118558=3 Numerical comparisons could then be used to determin if a rev was equal, greater, or less than. Any o