Well, not true:

debian::
        # if version is less than 4.2.4, then upgrade
        ntp pkgmgr=${pkg_mgr} version=4.2.4 cmp=lt elsedefine=needs_ntp

...

cfagent -qv

Package: ntp
Something impossible happened... ('grep' exited abnormally).

And the C code is correct:

while (!feof (pp))
   {
   *VBUFF = '\0';
   ReadLine (VBUFF, CF_BUFSIZE, pp);
   if (*VBUFF != '\0')
      {
      if (sscanf (VBUFF, "  Installed: %s", tmpBUFF) > 0)
         {
         AppendItem (&evrlist, tmpBUFF, "");
         }
      }
   }

if (cfpclose (pp) != 0)
   {
   Verbose ("Something impossible happened... ('grep' exited abnormally).\n");
   DeleteItemList (evrlist);
   return 0;
   }

That's on Hardy... Perhaps I'm not doing something correctly, but it
works fine for other OSes (CentOS).

-- 
Test for installed packages in cfengine is broken
https://bugs.launchpad.net/bugs/232450
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to