1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-24 08:00:05 -07:00
kiss/contrib/kiss-repo-orphans
2020-11-25 09:02:32 +02:00

21 lines
331 B
Bash
Executable File

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