planarchaos: count the number on nonunique pkgs

This commit is contained in:
XGQT 2020-04-21 21:37:10 +02:00
parent 0f835ffa03
commit d187f4deed
No known key found for this signature in database
GPG Key ID: 2089DEC77862433A

View File

@ -78,14 +78,17 @@ esac
ov_pkgs="$(use_eix --only-names --in-overlay "${1}")"
known_unique="$(use_eix --only-in-overlay "${1}")"
nnuniq=0
for pkg in ${ov_pkgs}
do
# check if pkg is not in known_unique (other overlys have it)
if [ "${known_unique#*${pkg}}" = "${known_unique}" ]
then
nnuniq=$((nnuniq + 1))
echo
ok_msg "Package ${pkg}:"
ok_msg "Package ${nnuniq} ${pkg}:"
use_eix --exact --force-color "${pkg}"
fi
done