portsdb -Uu duplicate entry warnings

Alex Zbyslaw xfb52 at dial.pipex.com
Wed Aug 24 10:19:48 GMT 2005


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



More information about the freebsd-questions mailing list