Bas van der Vlies <[EMAIL PROTECTED]> writes:

> When i want to install deb packages with cfengine2 it will always install
> the package with statements like:
>
> package:
>       ipython action=install

Can you please elaborate a bit? What do you expect and what does
happen / not happen?

> fix included:
> -/*
> - * HvB : Changed cfopen to cfopen_sh
> -*/
> -if ((pp = cfpopen_sh(VBUFF, "r")) == NULL)
> +if ((pp = cfpopen (VBUFF, "r")) == NULL)
>     {
>     Verbose ("Could not execute APT-command (apt-cache policy).\n");
>     return 0;
> @@ -768,7 +765,6 @@

In the next email to this bug you say:

> The patch must be cfpopen must be replace by cfpopen_sh ;-)

So what you want is the following,

| diff -ruN cfengine-2.2.3.orig/src/package.c
| cfengine-2.2.3/src/package.c
| --- cfengine-2.2.3.orig/src/package.c   2007-11-21 18:20:01.000000000 +0100
| +++ cfengine-2.2.3/src/package.c        2008-02-13 23:13:13.000000000 +0100
| @@ -734,7 +734,7 @@
|  snprintf (VBUFF, CF_BUFSIZE, "/usr/bin/apt-cache policy %s 2>&1 | grep -v " \
|            "\"W: Unable to locate package \"", package);
|  
| -if ((pp = cfpopen_sh(VBUFF, "r")) == NULL)
| +if ((pp = cfpopen (VBUFF, "r")) == NULL)
|     {
|     Verbose ("Could not execute APT-command (apt-cache).\n");
|     return 0;

right?


- Werner



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to