#!/bin/sh
#
# Keyword search using arrow and apt-cache
# written by "KORN Andras" <korn@chardonnay.math.bme.hu>
# Distributed under the GNU/GPL.
#
# Usage: dpkg-keyword { space-separated list of keywords }
#
apt-cache show $(echo "$@"  \
| /usr/bin/arrow --data-dir /var/lib/dpkg/index.db -n 2000 -q \
| grep -v '^[^/]' \| sed 's#.*/##;s/[[:space:]].*//') \
| less
