Commit 8884a332 authored by Seblu's avatar Seblu

base-seblu: display unsused/local package only if any

parent 9e8f02ea
# arg 1: the new package version
# arg 2: the old package version
# vim:set ts=2 sw=2 et:
p() {
echo
for i in $(seq 1 ${#1}); do echo -n '='; done; echo
echo "$1"
for i in $(seq 1 ${#1}); do echo -n '='; done; echo
}
# arg 1: the new package version
post_install() {
echo '::: Unused dependencies'
pacman -Qdt
echo '::: Local-only packages'
pacman -Qm
_out="$(pacman -Qdt)" && p 'Unused dependencies' && echo "$_out"
_out="$(pacman -Qm)" && p 'Local-only packages' && echo "$_out"
true
}
......@@ -16,4 +20,3 @@ post_upgrade() {
post_install "$1"
}
# vim:set ts=2 sw=2 et:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment