Iain Patterson wrote:
> Looking at the code again I understand why you say that removing
> the pkgversion lines would break things for versioned packages.  So
> how about this.
>
>      pkgversion = strrchr(pkgname, '-');
>      if (pkgversion)
>         {
>         *pkgversion = '\0';
>         pkgversion += 1;
>         }

Oddly, this does seem to work just fine.  I went through the code,  
and we only do this in two places and only for getting lists of  
packages.  We don't actually need to increment pkgversion because we  
don't use it anywhere.  I've sent this with the fixes for returning  
command failure.

-- 
Jo Rhett
Net Consonance : consonant endings by net philanthropy, open source  
and other randomness


_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine

Reply via email to