summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/bin/Packages3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/bin/Packages b/share/bin/Packages
index 2f7ae8c69..929aaa491 100755
--- a/share/bin/Packages
+++ b/share/bin/Packages
@@ -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