aboutsummaryrefslogtreecommitdiff
path: root/contrib/cpt-orphans
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-03-12 12:42:53 +0000
committermerakor <cem@ckyln.com>2021-03-12 12:42:53 +0000
commitc0ddaf74fa5f99dc0c60515a291bb6276b134fa6 (patch)
tree44a58a592dd4e449b8bfcd4a03c307b46622fd3a /contrib/cpt-orphans
parentef2b0004413c51b157db2c5bf39714e04608428a (diff)
downloadcpt-c0ddaf74fa5f99dc0c60515a291bb6276b134fa6.tar.gz
cpt-orphans: use cpt-lib to get base packages
FossilOrigin-Name: d93b9283d5c27fd36c576e70b00bfdf9a9392ece2b1611c61039794608d1207f
Diffstat (limited to 'contrib/cpt-orphans')
-rwxr-xr-xcontrib/cpt-orphans5
1 files changed, 1 insertions, 4 deletions
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