kiss-repodepends: don't output the dependencies of installed package

kiss-repodepends did not honour the user's KISS_PATH and outputted
the last path it found. If the user has the package installed, the
last path will always be the system database, which defeats the whole
purpose of "repodepends". This patch will use the first path it finds,
which will be the user's preferred repository in the KISS_PATH.

Signed-off-by: Dylan Araps <dylan.araps@gmail.com>
This commit is contained in:
Cem Keylan 2020-04-17 12:44:15 +03:00 committed by Dylan Araps
parent 4e7184e20c
commit 766e5d7089

View File

@ -2,7 +2,4 @@
#
# kiss-repodepends
# Disable this warning as the output
# from 'kiss s' is intended to be split.
# shellcheck disable=2046
cat $(kiss s "$1")/depends 2>/dev/null
cat "$(kiss s "$1" | sed 1q)/depends" 2>/dev/null