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" cd "$KISS_ROOT/var/db/kiss/installed"
for pkg in *; do kiss s * | while read -r path; do
i=1 pkg=${path##*/}
kiss s "$pkg" | while read -r line; do case $seen in *" $pkg "*)
case $i-$line in ("1-$PWD/$pkg")
printf '%s\n' "$pkg"
continue continue
esac esac
i=$((i + 1)) case $path in "$PWD/$pkg")
done printf '%s\n' "$pkg"
esac
seen="$seen $pkg "
done done