cpt

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

commit aeb4ba6fb61023b96b9ff4f79f7881e65c433d13
parent 1ea013ea9fb762e8bde7f255c14416545ba589fe
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Mon,  5 Aug 2019 09:02:09 +0300

kiss: search installed packages if package doesn't exist in repository.

Diffstat:
Mkiss | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/kiss b/kiss @@ -73,7 +73,9 @@ pkg_search() { "The variable should work just like \$PATH." # Find the repository containing a package. - set -- "$1" $(IFS=:; find $KISS_PATH -maxdepth 1 -name "$1") + # Searches installed packages if the package is absent from the repositories. + set -- "$1" $(IFS=:; find $KISS_PATH "$KISS_ROOT/$pkg_db" \ + -maxdepth 1 -name "$1") # A package may also not be found due to a repository not being # readable by the current user. Either way, we need to die here.