diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2018-08-06 15:35:44 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2018-08-06 15:35:44 -0400 |
commit | 7543d0b6dda7ade960c11b60e3b10ff13369af44 (patch) | |
tree | 6d7dfc09b9c9d776e80760fef805ed77ae83edb3 /src | |
parent | ffccc1fbb9113c6f109e6d880107c1a85886389b (diff) |
chcleanup: Only use `pacman -T` filtering on DEPENDS
Diffstat (limited to 'src')
-rw-r--r-- | src/chroot-tools/chcleanup.in | 6 |
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 |