aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-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