[csw-maintainers] package collision detection

Philip Brown phil at bolthole.com
Tue Jun 8 20:48:27 CEST 2010


On Tue, Jun 8, 2010 at 9:53 AM, Philip Brown <phil at bolthole.com> wrote:
> On Tue, Jun 8, 2010 at 3:46 AM, Maciej (Matchek) Blizinski
> <maciej at opencsw.org> wrote:
>> No dia 4 de Junho de 2010 01:05, Philip Brown <phil at opencsw.org> escreveu:
>>> Hurray for new collision detection...
>>
>> I didn't know it was already working!  Is there any available code so
>> that people can read it and helpfully point out any flaws?
>>

ps: This runs over the pkgmap file.

nawk ' $2 ~ /^[bceflpsvx]$/ {
        if(($2=="s")||($2=="l")){
                $4=substr($4,1,index($4,"=")-1);
        }
        if(index($4,"/")==1) {
                longname=$4;
        } else{
                 longname="'$basedir'/"$4;
        }

        printf("insert into xxx values ('\'$pkgname\'',  '\''%s'\'');\n",
                longname);

}'


More information about the maintainers mailing list