[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#758218: live-build: Packages helper includes packages excluded by tasksel



Package: live-build
Version: 4.0~alpha39-1
Followup-For: Bug #758218

Sorry, forgot to include my patch in the original submission. Now
attached.
>From 2e9cfe4811435025abd9a6a6af9a4d48f745eefc Mon Sep 17 00:00:00 2001
From: Ben Armstrong <synrg@debian.org>
Date: Fri, 15 Aug 2014 09:51:22 -0300
Subject: [PATCH] Exclude lib and non-main sections as tasksel does.

---
 share/bin/Packages | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/share/bin/Packages b/share/bin/Packages
index 2f7ae8c..929aaa4 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
-- 
2.1.0.rc1


Reply to: