Victor Franzi - Git Sources dotfiles / master pacman / etc / pacman.d / hooks / pkgclean-upgrade.hook
master

Tree @master (Download .tar.gz)

pkgclean-upgrade.hook @masterraw · history · blame

[Trigger]
Type = Package
Operation = Upgrade
Target= *

[Action]
Description = Cleaning pacman cache...
When = PostTransaction
Depends = pacman-contrib
Depends = sed
Exec = /usr/bin/bash -c "paccache -rk2 | sed '/^$/d'"