aboutsummaryrefslogtreecommitdiff
path: root/contrib/kiss-depends
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/kiss-depends')
-rwxr-xr-xcontrib/kiss-depends10
1 files changed, 3 insertions, 7 deletions
diff --git a/contrib/kiss-depends b/contrib/kiss-depends
index 22a1d4e..185a80b 100755
--- a/contrib/kiss-depends
+++ b/contrib/kiss-depends
@@ -2,12 +2,8 @@
#
# kiss-depends - Display a package's dependencies.
-db_dir=$KISS_ROOT/var/db/kiss/installed/${1-null}
+kiss l "${1:-null}" >/dev/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
-}
+db_dir=$KISS_ROOT/var/db/kiss/installed/${1:-null}
-[ -f "$db_dir/depends" ] && cat "$db_dir/depends"
+cat "$db_dir/depends" 2>/dev/null