kiss-reporevdepends (407B)
1 #!/bin/sh 2 # 3 # kiss-revdepends - Display packages which depend on package. 4 5 # 'cd' to the database directory as a simple way of 6 # stripping the path and performing a 'basename'. 7 [ "$1" ] || exit 1 8 9 # Word splitting is in 10 11 for repo in $(echo "$KISS_PATH" | tr ':' ' ') ; do 12 13 cd "$repo/.." ||: 14 # Use a simple 'grep' to display packages depending on '$1'. 15 grep "^$1" -- "${repo##*/}"/*/depends 16 done