diff options
Diffstat (limited to 'find-deprecated-pkgs')
-rwxr-xr-x | find-deprecated-pkgs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/find-deprecated-pkgs b/find-deprecated-pkgs index 8e6a435..62e665e 100755 --- a/find-deprecated-pkgs +++ b/find-deprecated-pkgs @@ -102,20 +102,27 @@ msg() { "$1" } +submsg() { + printf ' %s->%s %s\n' \ + "$(tput bold;tput setaf 4)" \ + "$(tput sgr0)" \ + "$1" +} + check(){ mkpkglist $1 case $1 in parabola) msg 'Comparing blacklists with Parabola packages ...' pkgs=$(cut -d ":" -f 1 $blacklists_parabola | grep -v ^#) for p in $pkgs; do - grep -xw ^$p $parabola_pkgs &> /dev/null || printf '%s was not found\n' "$p" + grep -xw ^$p$ $parabola_pkgs &> /dev/null || submsg "$p was not found" done msg 'done' ;; arch) msg 'Comparing blacklists with Arch packages ...' pkgs=$(cut -d ":" -f 1 $blacklists | grep -v ^#) for p in $pkgs; do - grep -xw ^$p $arch_pkgs &> /dev/null || printf '%s was not found\n' "$p" + grep -xw ^$p$ $arch_pkgs &> /dev/null || submsg "$p was not found" done msg 'done' ;; |