aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-04-17 09:44:15 +0000
committermerakor <cem@ckyln.com>2020-04-17 09:44:15 +0000
commit65f95bd4b4eb9d49464dbadd5e0ca78a4f10dca4 (patch)
tree273d8bdc4769a78f071c9ddcc1cbedc4e04f120d
parent77348a295e0dada910c0d701d8f6a1c68e9bb5e4 (diff)
downloadcpt-65f95bd4b4eb9d49464dbadd5e0ca78a4f10dca4.tar.gz
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. FossilOrigin-Name: 6fe68222a6549857ba339a8ad215bf72da9d1fd82e7346166a022411ac97c38a
-rwxr-xr-xcontrib/kiss-repodepends5
1 files changed, 1 insertions, 4 deletions
diff --git a/contrib/kiss-repodepends b/contrib/kiss-repodepends
index f56c2cb..fded3b2 100755
--- 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