From 7543d0b6dda7ade960c11b60e3b10ff13369af44 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 6 Aug 2018 15:35:44 -0400 Subject: chcleanup: Only use `pacman -T` filtering on DEPENDS --- src/chroot-tools/chcleanup.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.2