nameonly=0
latestonly=1
-while getopts :s:f:vnI opt; do
+while getopts :s:f:vnIF: opt; do
case $opt in
f) pkgfile="$OPTARG" ;;
s) status="$OPTARG" ;;
v) verbose=1 ;;
n) nameonly=1 ;;
a) latestonly=0 ;;
+ F) filter="$OPTARG" ;;
esac
done
shift $(( OPTIND - 1))
where="and status = '$status'"
fi
+if [ -n "$filter" ]; then
+ where="$where and ($filter)"
+fi
+
pkgid=$1
if [ -n "$pkgid" ]; then