1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-11-04 14:05:41 -07:00
kiss/contrib/kiss-repo-orphans

21 lines
331 B
Plaintext
Raw 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