Re: Broken FreeBSD package installation

Jo Rhett <[email protected]>
Newsgroups gmane.comp.sysutils.cfengine.bugs
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.