aboutsummaryrefslogtreecommitdiff
path: root/contrib/kiss-repodepends
blob: 5fad8d9c25970b711bff43fbd0c48ef0f25a1b75 (plain)
1
2
3
4
5
6
7
#!/bin/sh -e
# Display a package's dependencies in the repository

[ "$1" ] || { printf '%s\n' "usage: kiss-repodepends <pkg>" ; exit 1 ;}
kiss s "$1" >/dev/null

cat "$(kiss s "$1" | sed 1q)/depends" 2>/dev/null