On Fri, 12 Feb 2010 11:38:04 +0200, Alan McKinnon wrote: > > Unfortunately eix -I -q CAT/PACK > > produces a return code of 0 irrespectively if CAT/PACK > > is install or not. > > > > I'd like to say > > > > for P in .......; do > > if CHECK_IF_INSTALLED $P; then echo $P; fi > > done > > > > What to replace for CHECK_IF_INSTALLED ? > > check for the existence of /var/db/pkg/$CAT/%PKG-* using test -f
if [[ "$(eix -I -e cat/pkg)" != "No matches found" ]]; then... if [[ -n "$(qlist -Ie cat/pkg)" ]]; then... -- Neil Bothwick Anything worth fighting for is worth fighting dirty for.
signature.asc
Description: PGP signature