aboutsummaryrefslogtreecommitdiff
path: root/contrib/kiss-depends
blob: 22a1d4e731060c5c7e6da6fe0202a56b81fb60bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh -ef
#
# kiss-depends - Display a package's dependencies.

db_dir=$KISS_ROOT/var/db/kiss/installed/${1-null}

# Check if package is installed and exit if it is not.
[ -d "$db_dir" ] || {
    printf '%s\n' "error: '$1' not installed." >&2
    exit 1
}

[ -f "$db_dir/depends" ] && cat "$db_dir/depends"