1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-24 08:00:05 -07:00
kiss/contrib/kiss-orphans

17 lines
397 B
Plaintext
Raw Normal View History

2019-10-30 04:51:48 -06:00
#!/bin/sh -e
2020-05-01 00:07:20 -06:00
# List orphaned packages
2019-10-30 04:51:48 -06:00
cd "$KISS_ROOT/var/db/kiss/installed/"
2019-10-30 04:51:48 -06:00
for pkg in *; do
case $pkg in
# Exemptions for orphans which aren't really
# orphans. Exclude them from the list.
baseinit|baselayout|gcc|e2fsprogs|musl|\
make|busybox|bzip2|grub|kiss|git)
continue
esac
2019-10-30 04:51:48 -06:00
grep -q "^$pkg$" ./*/depends || printf '%s\n' "$pkg"
done