[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit c2f8d2f3e320ecb211cdf873085d65100c8b9aeb
parent dd25f8e9c01f84b5b2dfaba844daef06aee9a601
Author: Cem Keylan <cem@ckyln.com>
Date:   Fri, 17 Apr 2020 12:44:15 +0300

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.

Mcontrib/kiss-repodepends | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/contrib/kiss-repodepends b/contrib/kiss-repodepends @@ -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