From c0ddaf74fa5f99dc0c60515a291bb6276b134fa6 Mon Sep 17 00:00:00 2001 From: merakor Date: Fri, 12 Mar 2021 12:42:53 +0000 Subject: cpt-orphans: use cpt-lib to get base packages FossilOrigin-Name: d93b9283d5c27fd36c576e70b00bfdf9a9392ece2b1611c61039794608d1207f --- contrib/cpt-orphans | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'contrib/cpt-orphans') diff --git a/contrib/cpt-orphans b/contrib/cpt-orphans index f42c49e..bf22305 100755 --- a/contrib/cpt-orphans +++ b/contrib/cpt-orphans @@ -6,10 +6,7 @@ trap 'rm -f $CPT_TMPDIR/packages-$$' EXIT cd "$CPT_ROOT/var/db/cpt/installed" # Get base packages. -[ -f "$CPT_ROOT/etc/cpt-base" ] && while read -r pkg _; do - case "$pkg" in ''|\#*) continue; esac - base=" $pkg $base" -done < "$CPT_ROOT/etc/cpt-base" +base=" $(cpt-lib pkg_get_base nonl)" # Make a list of packages, but remove the base. for pkg in *; do -- cgit v1.2.3