1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-11-04 14:05:41 -07:00
kiss/contrib/kiss-repodepends
Cem Keylan 766e5d7089 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>
2020-04-17 15:14:09 +03:00

6 lines
82 B
Bash
Executable File

#!/bin/sh
#
# kiss-repodepends
cat "$(kiss s "$1" | sed 1q)/depends" 2>/dev/null