kiss-repo-orphans: call kiss once

This commit is contained in:
Dylan Araps 2020-11-19 14:37:29 +02:00
parent 98b3f4ab6a
commit 1ea02cc354
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

View File

@ -3,15 +3,18 @@
cd "$KISS_ROOT/var/db/kiss/installed"
for pkg in *; do
i=1
kiss s * | while read -r path; do
pkg=${path##*/}
kiss s "$pkg" | while read -r line; do
case $i-$line in ("1-$PWD/$pkg")
printf '%s\n' "$pkg"
continue
esac
case $seen in *" $pkg "*)
continue
esac
i=$((i + 1))
done
case $path in "$PWD/$pkg")
printf '%s\n' "$pkg"
esac
seen="$seen $pkg "
done