Exclude lib and non-main sections as tasksel does (Closes: #758218).

This commit is contained in:
Ben Armstrong 2014-08-15 09:51:22 -03:00 committed by Daniel Baumann
parent 23b8ec4ff8
commit 5fc57865a4
1 changed files with 2 additions and 1 deletions

View File

@ -27,4 +27,5 @@ fi
_FIELD="${1}"
_VALUE="${2}"
grep-aptavail -n -sPackage -F${_FIELD} ${_VALUE} | sort
# For compatibility with tasksel, exclude lib and non-main packages
grep-aptavail -n -sPackage -F${_FIELD} ${_VALUE} -a -! -e -FSection '^(lib|/)' | sort