summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-08-06 15:35:44 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-08-06 15:35:44 -0400
commit7543d0b6dda7ade960c11b60e3b10ff13369af44 (patch)
tree6d7dfc09b9c9d776e80760fef805ed77ae83edb3
parentffccc1fbb9113c6f109e6d880107c1a85886389b (diff)
chcleanup: Only use `pacman -T` filtering on DEPENDS
-rw-r--r--src/chroot-tools/chcleanup.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/chroot-tools/chcleanup.in b/src/chroot-tools/chcleanup.in
index 1d674aa..89339a6 100644
--- a/src/chroot-tools/chcleanup.in
+++ b/src/chroot-tools/chcleanup.in
@@ -90,7 +90,11 @@ pacman=(pacman --dbpath="$TEMPDIR/db" --hookdir="$TEMPDIR/hooks")
msg2 "Creating a full list of packages..."
for var in CHROOTPKG CHROOTEXTRAPKG DEPENDS; do
declare -n pkgsref="$var"
- mapfile -t pkgs < <("${pacman[@]}" -T -- "${pkgsref[@]}")
+ if [[ $var = DEPENDS ]]; then
+ mapfile -t pkgs < <("${pacman[@]}" -T -- "${pkgsref[@]}")
+ else
+ pkgs=("${pkgsref[@]}")
+ fi
if (( ${#pkgs[@]} == 0 )); then
continue
fi