On Wed, 25 Apr 2007, [EMAIL PROTECTED] wrote:
> I'm having a very VERY annoying problem with "tidy". This may be a
> feature, but it feels like a bug.
I spent a little time duplicating this. The problem is that completing
the first tidypattern sets the global 'done' field so none of the
subsequent ones get acted upon. Please try the following patch:
--- do.c.orig 2007-04-25 17:32:42.961639974 -0700
+++ do.c 2007-04-25 18:16:53.344517278 -0700
@@ -1153,7 +1153,14 @@
Debug("\nTidying from base directory %s\n",tp->path);
basename[0] = '\0';
ExpandWildCardsAndDo(tp->path,basename,TidyWrapper,tp);
- tp->done = 'y';
+ if (tp->tidylist->next != NULL)
+ {
+ tp->done = 'n';
+ }
+ else
+ {
+ tp->done = 'y';
+ }
}
else
{
--
- Eric Sorenson - N37 17.255 W121 55.738 - http://ahpook.vox.com/ -
- Personal colo with a professional touch - http://www.explosive.net -
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine