Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Aug 2005 11:19:44 +0100
From:      Alex Zbyslaw <xfb52@dial.pipex.com>
To:        bob self <bobself@charter.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: portsdb -Uu duplicate entry warnings
Message-ID:  <430C49C0.5080503@dial.pipex.com>
In-Reply-To: <20050823220253.GA93345@xor.obsecurity.org>
References:  <430B1171.8010308@charter.net> <20050823220253.GA93345@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Kris Kennaway wrote:

>On Tue, Aug 23, 2005 at 08:07:13AM -0400, bob self wrote:
>  
>
>>I've been told that these messages are not a problem. But I do think that 
>>they
>>are warnings. How can I get rid of these warnings?
>>    
>>
>
>You don't, they're not a problem.  If you really don't want to see
>them, I recommend closing your eyes while running the command :-).
>
>  
>
>>Warning: Duplicate INDEX entry: freeciv-gtk2-2.0.2
>>Warning: Duplicate INDEX entry: mod_frontpage2-5.0.2.2635
>>Warning: Duplicate INDEX entry: mod_jk2-apache2-2.0.4
>>Warning: Duplicate INDEX entry: mod_rpaf-ap2-0.5
>>
>>I get these after running 'portsdb -Uu
>>
>>I've searched the archives but haven't found the solution.
>>
For (t)csh:

alias portsdb 'portsdb \!:* |& egrep -v "Warning: Duplicate INDEX"'

(that's " then ' at the end)

For (ba)sh I think it's:

alias portsdb='portsdb "$@" 2>&1 | egrep -v "Warning: Duplicate INDEX"'

This is the power of Unix.  Use it.

--Alex




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?430C49C0.5080503>