Commit 8884a332 authored by Seblu's avatar Seblu
Browse files

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

parent 9e8f02ea
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
# 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: