portsdb -Uu duplicate entry warnings
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
>>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-22.214.171.12435
>>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.
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.
More information about the freebsd-questions