kiss/contrib/kiss-repo-orphans

21 lines
331 B
Plaintext
Raw Permalink Normal View History

#!/bin/sh -e
# List packages which aren't present in any repository.
cd "$KISS_ROOT/var/db/kiss/installed"
2020-11-25 00:02:32 -07:00
kiss s ./* | while IFS=/ read -r _ path; do
2020-11-19 05:37:29 -07:00
pkg=${path##*/}
2020-11-19 05:37:29 -07:00
case $seen in *" $pkg "*)
continue
esac
2020-11-19 05:37:29 -07:00
case $path in "$PWD/$pkg")
printf '%s\n' "$pkg"
esac
seen="$seen $pkg "
done
2020-11-19 05:37:29 -07:00