Re: wish list

2010-01-25 Thread Erlend Leganger
2010/1/25 > I can confirm that a comma on the last item of a list is no longer a > syntax error. Which is the most natural thing in the world for Perl geeks - hehe... - Erlend ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine

Re: Proper way of doing replace_or_add?

2010-01-25 Thread Mark Burgess
Try looking at the set-variable bundle in the standard library M Diego Zamboni wrote: > Hi, > > I've been working on putting together an edit_line bundle that does > the following: > > - If a certain pattern exists, replace it with a given string > - If the pattern does not exist, add the line

Proper way of doing replace_or_add?

2010-01-25 Thread Diego Zamboni
Hi, I've been working on putting together an edit_line bundle that does the following: - If a certain pattern exists, replace it with a given string - If the pattern does not exist, add the line to the file. Below is what I came up with, which works, but somehow feels inelegant because I have to

Re: recursive copy with encryption and empty files

2010-01-25 Thread Mark Burgess
Mario, sincere apologies for this error. After investigation, this is a simple issue that slipped through testing, not dangerous in any way. You will find a patched version in svn revision 739, correcting this issue. sincerely M Mario Heidmann wrote: > Hello list, > > While switching to vers

Re: Standard library: apt package method

2010-01-25 Thread Jonathan Clarke
Actually, this is the same with apt-get (having to do "apt-get update"). I will work on a global patch to include this. Jonathan On 25/01/2010 17:02, Mark Burgess wrote: > > Since we didn't look at aptitude (no debian users in the office) we only made > functionality that was supported in apt-g

Re: Standard library: apt package method

2010-01-25 Thread Mark Burgess
Since we didn't look at aptitude (no debian users in the office) we only made functionality that was supported in apt-get. If you can set up and test the full thing for aptitude, that is a great service to the community. Jonathan Clarke wrote: > On 25/01/2010 14:44, Jonathan Clarke wrote: >> Hi

Re: Standard library: apt package method

2010-01-25 Thread Jonathan Clarke
On 25/01/2010 14:44, Jonathan Clarke wrote: > Hi, > > I've been testing the standard library, in particular the apt > package_method. I come with a bug and some suggestions. One further question: To "be aware" of new package, aptitude (or apt-get) must download the latest list of packages from a

Re: Standard library: apt package method

2010-01-25 Thread Jonathan Clarke
Great idea. From Wikipedia (http://en.wikipedia.org/wiki/Aptitude_(software)): 8<-- As of the Debian 4.0 ("Etch") release of 2007, aptitude is "the preferred program for package management from console both for package installations and package or system upgrades."[1] 8<-- Please find a patc

recursive copy with encryption and empty files

2010-01-25 Thread Mario Heidmann
Hello list, While switching to version 3.0.3, I've encountered an error when I do a recursive copy of a directory which contains at least one empty file. This only happens when I use the option encrypt => "true"; Then, the cf-serverd process crashes with this error message: cf3 Host myhost gr

Re: wish list

2010-01-25 Thread NWatson
I can confirm that a comma on the last item of a list is no longer a syntax error. In regards to using cf-runagent for testing handshakes I can only see that possible if the run agent now be targeted to a single host. My testing Community 3.0.2 indicated that cf-runagent always went through a

Re: Standard library: apt package method

2010-01-25 Thread Mark Burgess
This is good feedback. If we know the point at which aptitude came into play, then we can place classes in the body to separate, or test for it, e.g. body package_method debian { have_aptitude:: !have_aptitude:: } Jonathan Clarke wrote: > Hi, > > I've been testing the standard

Standard library: apt package method

2010-01-25 Thread Jonathan Clarke
Hi, I've been testing the standard library, in particular the apt package_method. I come with a bug and some suggestions. First off, the bug. package_update_command is set to "apt-get dist-upgrade", which cause *all* packages to be updated to the latest version, not just the one(s) we're updat