also add reinstalled

This commit is contained in:
Tobias Powalowski 2024-06-15 12:37:16 +02:00
parent 12bdf9d093
commit ce84ba0435

View file

@ -15,7 +15,7 @@ _cleanup() {
find /usr/share/i18n/charmaps ! -name 'UTF-8.gz' -delete &>"${_NO_LOG}"
# remove packages from cache
#shellcheck disable=SC2013
for i in $(grep -w 'installed' /var/log/pacman.log | cut -d ' ' -f 4); do
for i in $(grep -w -E 'reinstalled|installed' /var/log/pacman.log | cut -d ' ' -f 4); do
rm -rf "${_CACHEDIR}/${i}"-[0-9]*
done
}