summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Armstrong <synrg@debian.org>2014-08-15 09:51:22 -0300
committerDaniel Baumann <mail@daniel-baumann.ch>2014-08-27 23:03:39 +0200
commit5fc57865a4124c4432333cb73468ac2494e91d75 (patch)
tree43b7f430de7c0a63f2b4b57bc59620895867fdd1
parent23b8ec4ff8163467d260b572ee7524f5f2046a6b (diff)
downloadvyos-live-build-5fc57865a4124c4432333cb73468ac2494e91d75.tar.gz
vyos-live-build-5fc57865a4124c4432333cb73468ac2494e91d75.zip
Exclude lib and non-main sections as tasksel does (Closes: #758218).
-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