mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-23 15:40:07 -07:00
kiss: new utility kiss-repo-orphans
Lists all packages which do not belong to any repository in KISS_PATH.
This commit is contained in:
parent
3834d0e584
commit
98b3f4ab6a
17
contrib/kiss-repo-orphans
Executable file
17
contrib/kiss-repo-orphans
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/sh -e
|
||||||
|
# List packages which aren't present in any repository.
|
||||||
|
|
||||||
|
cd "$KISS_ROOT/var/db/kiss/installed"
|
||||||
|
|
||||||
|
for pkg in *; do
|
||||||
|
i=1
|
||||||
|
|
||||||
|
kiss s "$pkg" | while read -r line; do
|
||||||
|
case $i-$line in ("1-$PWD/$pkg")
|
||||||
|
printf '%s\n' "$pkg"
|
||||||
|
continue
|
||||||
|
esac
|
||||||
|
|
||||||
|
i=$((i + 1))
|
||||||
|
done
|
||||||
|
done
|
Loading…
Reference in New Issue
Block a user